[Pkg-haskell-commits] [package-plan] 02/03: Warn if packages do not end up in the package plan

Joachim Breitner nomeata at moszumanska.debian.org
Sat Jun 20 12:03:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

nomeata pushed a commit to branch master
in repository package-plan.

commit a8aa87df6c81a431cb3594df8b2140dc2f149594
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sat Jun 20 13:10:00 2015 +0200

    Warn if packages do not end up in the package plan
---
 packages.txt     |  4 ++--
 test-packages.pl | 13 +++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/packages.txt b/packages.txt
index 6f1ede5..5cf62bc 100644
--- a/packages.txt
+++ b/packages.txt
@@ -710,7 +710,7 @@ time-compat 0.1.0.3
 time-locale-compat 0.1.0.1
 tls 1.2.16
 torrent 10000.0.0
-transformers 0.3.0.0
+transformers 0.3.0.0 ghcpkg
 transformers-base 0.4.4
 transformers-compat 0.4.0.4 -fthree ahead
 trifecta 1.5.1.3
@@ -781,7 +781,7 @@ x509-util 1.5.0 binary
 x509-validation 1.5.1
 xcb-types 0.7.0
 xdg-basedir 0.2.2
-xhtml 3000.2.1
+xhtml 3000.2.1 ghcpkg
 xml 1.3.14
 xml2html 0.2.0
 xml-conduit 1.2.3.3
diff --git a/test-packages.pl b/test-packages.pl
index 7609c51..257c3a0 100755
--- a/test-packages.pl
+++ b/test-packages.pl
@@ -333,6 +333,7 @@ for my $group (@groups) {
 		 "--config-file",
 		 "$sandboxdir/config",
 		 "--ghc-pkg-option=--global-package-db=$dbpath",
+		 "--global",
 		 "install",
 		 "--dry-run",
 		 "--force-reinstall",
@@ -406,6 +407,7 @@ for my $group (@groups) {
 		print $err;
 	}
 }
+write_file("cabal-cmd.out", $total_out);
 
 my %results;
 my %upgradeable;
@@ -453,6 +455,17 @@ if ($all_runs_ok) {
 		}
 		$count++;
 	}
+
+	for my $pkg ( keys %versions ) {
+		next if (exists $ignored{$pkg});
+		next if (exists $obsolete{$pkg});
+		next if (exists $avoid{$pkg});
+		next if (exists $ghcpkg{$pkg});
+
+		next if (exists $results{$pkg});
+		printf "ERROR: Package missing in package plan %s\n", $pkg;
+	}
+
 	printf "%d packages successfully tested for co-installability.\n", $count;
 	$stats{total} = $count;
 	printf "%d packages carry Debian-specific patches.\n", $stats{patched} if $createsandbox;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/package-plan.git



More information about the Pkg-haskell-commits mailing list