summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2014-06-21 01:57:53 +0200
committerAustin Seipp <austin@well-typed.com>2014-08-19 07:09:52 -0500
commit7012ed8515100b4947383e93b82dbff7a0aa835c (patch)
tree24b944de0894709434253d2b0ae391ff63b0a7da /sync-all
parent806d823e757c73f77f03fdf2d1eba6a83b1e32e6 (diff)
downloadhaskell-7012ed8515100b4947383e93b82dbff7a0aa835c.tar.gz
Check if file is present instead of directory
Fixes #8886. Problem: any `sync-all` command that is run before the first succesfull `sync-all get` would trigger a false warning about an old `time` package being present. Cause: after cloning the ghc repository, the (empty) `libraries/time` directory is already present. Solution: check if the directory actually contains any of the `time` files. I picked the `LICENSE` file, since `boot` does so as well. Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index 355e16a562..651a4f0bbb 100755
--- a/sync-all
+++ b/sync-all
@@ -964,7 +964,7 @@ EOF
}
}
message "== Checking for old time from tarball";
- if (-d "libraries/time" and ! -e "libraries/time/.git") {
+ if (-f "libraries/time/LICENSE" and ! -e "libraries/time/.git") {
print <<EOF;
============================
ATTENTION!