[Pkg-haskell-commits] [package-plan] 01/01: Report upgradeable packages

Joachim Breitner nomeata at moszumanska.debian.org
Mon Aug 4 20:39:25 UTC 2014


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

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

commit 17581cfce82096c38ed99385bd2b2ad7b6c55775
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Mon Aug 4 22:39:23 2014 +0200

    Report upgradeable packages
---
 test-packages.pl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test-packages.pl b/test-packages.pl
index f0a290b..a081cee 100755
--- a/test-packages.pl
+++ b/test-packages.pl
@@ -289,6 +289,7 @@ for my $group (@groups) {
 }
 
 my %results;
+my %upgradeable;
 
 if ($all_runs_ok) {
 	for (split /\n/, $total_out) {
@@ -305,6 +306,10 @@ if ($all_runs_ok) {
 			} else {
 				$results{$pkg} = $version;
 			}
+
+			if (m!latest:!) {
+				$upgradeable{$pkg}++;
+			}
 		} else {
 			print STDERR "Unparseable line in cabal install output: $_\n";
 		}
@@ -331,6 +336,8 @@ if ($all_runs_ok) {
 	}
 	printf "%s packages successfully tested for co-installability.\n", $count;
 	$stats{total} = $count;
+	printf "%s packages have newer versions on hackage\n", scalar (keys %upgradeable);
+	$stats{upgradeable} = scalar (keys %upgradeable);
 	unless ($count) {
 		printf "Really no packages? output was:\n$total_out";
 	}

-- 
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