[Pkg-haskell-commits] darcs: tools: Work around IfElse anomaly in test-packages

Joachim Breitner mail at joachim-breitner.de
Sun Mar 9 14:32:16 UTC 2014


Sun Mar  9 13:44:32 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Work around IfElse anomaly in test-packages

    M ./all-packages/test-packages.pl -2 +4

Sun Mar  9 13:44:32 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Work around IfElse anomaly in test-packages
diff -rN -u old-tools/all-packages/test-packages.pl new-tools/all-packages/test-packages.pl
--- old-tools/all-packages/test-packages.pl	2014-03-09 14:32:16.523993449 +0000
+++ new-tools/all-packages/test-packages.pl	2014-03-09 14:32:16.599993432 +0000
@@ -60,8 +60,10 @@
 	unless (m/^(.*)-([0-9\.]*)-([a-f0-9]*?)$/) {
 		print "Ignoring unparseable grep-aptavail output line $.: $_\n";
 	}
-	$available{$1} = $2;
-	$packages{$1}++;
+	my ($pkg,$version) = ($1, $2);
+	$version = 0.85 if $pkg eq "IfElse" and $version eq "0.85.0.0.1"; # anomaly
+	$available{$pkg} = $version;
+	$packages{$pkg}++;
 }
 close AVAILABLE;
 




More information about the Pkg-haskell-commits mailing list