[Pkg-haskell-commits] darcs: tools: Pass constraints to cabal install to catch test dependencies as well.

Joachim Breitner mail at joachim-breitner.de
Wed May 29 08:09:14 UTC 2013


Wed May 29 08:08:48 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Pass constraints to cabal install to catch test dependencies as well.
  Ignore-this: f19f513cc06dd4bfb22c59229d90d016

    M ./all-packages/test-packages.pl -1 +8

Wed May 29 08:08:48 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Pass constraints to cabal install to catch test dependencies as well.
  Ignore-this: f19f513cc06dd4bfb22c59229d90d016
diff -rN -u old-tools//all-packages/test-packages.pl new-tools//all-packages/test-packages.pl
--- old-tools//all-packages/test-packages.pl	2013-05-29 08:09:13.979037396 +0000
+++ new-tools//all-packages/test-packages.pl	2013-05-29 08:09:13.999036708 +0000
@@ -76,5 +76,12 @@
 close CABAL;
 chmod 0444, "all-packages.cabal";
 
+my @params = ("cabal", "install", "--dry-run", "--force-reinstall", "--enable-tests");
+
+for my $pkg (sort keys %versions) {
+	next if (exists $comments{$pkg});
+	push @params, "--constraint", sprintf "%s (== %s)\n", $pkg, $versions{$pkg};
+}
+
 print "Running cabal-install...\n";
-system("cabal install --dry-run --force-reinstall") == 0 or die "cabal install failed: $?";
+(system @params) == 0 or die "cabal install failed: $?";





More information about the Pkg-haskell-commits mailing list