[commit: ghc] master: Improve sync-all's old-time-repo check (ae06df6)
Ian Lynagh
igloo at earth.li
Sun Feb 10 02:12:28 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/ae06df63bef37c688b135ae9df3dcc1998375042
>---------------------------------------------------------------
commit ae06df63bef37c688b135ae9df3dcc1998375042
Author: Ian Lynagh <ian at well-typed.com>
Date: Sat Feb 9 23:48:28 2013 +0000
Improve sync-all's old-time-repo check
It now checks that the directory exists before complaining that it's
old.
>---------------------------------------------------------------
sync-all | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sync-all b/sync-all
index 889f124..b24a832 100755
--- a/sync-all
+++ b/sync-all
@@ -882,7 +882,7 @@ EOF
}
message "== Checking for old time from tarball";
- if (! -e "libraries/time/.git") {
+ if (-d "libraries/time" and ! -e "libraries/time/.git") {
print <<EOF;
============================
ATTENTION!
More information about the ghc-commits
mailing list