summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-10-06 20:33:42 +0000
committerIan Lynagh <igloo@earth.li>2009-10-06 20:33:42 +0000
commitf7571f78feb1a3a735f77a66d556bb8e6c61d3e1 (patch)
treedd583f57b397c51ae4b1f2b180c58118e35e9c95 /darcs-all
parent49fb21e21496611dc2ccfd311e2b64fc4eb93023 (diff)
downloadhaskell-f7571f78feb1a3a735f77a66d556bb8e6c61d3e1.tar.gz
Add a test in darcs-all for old bytestring repositories
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all18
1 files changed, 18 insertions, 0 deletions
diff --git a/darcs-all b/darcs-all
index 56290ab8dc..cdef628e19 100644
--- a/darcs-all
+++ b/darcs-all
@@ -279,5 +279,23 @@ sub main {
}
}
+END {
+ message "== Checking for old bytestring repo";
+ if (-d "libraries/bytestring/_darcs") {
+ if ((system "darcs annotate --repodir libraries/bytestring --match 'hash 20080118173113-3fd76-d5b74c04372a297b585ebea4e16d524551ce5035' > /dev/null 2> /dev/null") == 0) {
+ print <<EOF;
+============================
+ATTENTION!
+
+You have an old bytestring repository in your GHC tree!
+
+Please remove it (e.g. "rm -r libraries/bytestring"), and the new
+version of bytestring will be used from a tarball instead.
+============================
+EOF
+ }
+ }
+}
+
main(@ARGV);