[Pkg-haskell-commits] [package-plan] 02/03: Warn if packages marked "ahead" are no longer ahead

Joachim Breitner nomeata at moszumanska.debian.org
Tue Jun 16 08:40:05 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 726f974e01705ab40298f583546f17b35294c05a
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Jun 16 10:39:40 2015 +0200

    Warn if packages marked "ahead" are no longer ahead
---
 test-packages.pl | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/test-packages.pl b/test-packages.pl
index ae3c5b9..f6b7666 100755
--- a/test-packages.pl
+++ b/test-packages.pl
@@ -177,10 +177,16 @@ for my $pkg (sort keys %packages) {
 			$stats{AHEAD}++;
 			$error_count++;
 		}
-	} elsif ( exists $lts{$pkg} and version_compare($versions{$pkg}, $lts{$pkg}) == -1 ) {
-		#printf "AHEAD  %s is %s here, but only %s in the tracked LTS release.\n" ,
-		#	$pkg, $available{$pkg}, $lts{$pkg};
-		$stats{"lts-upgradeable"}++;
+	} elsif ( exists $lts{$pkg} and version_compare($versions{$pkg}, $lts{$pkg}) <= 1 ) {
+		if ( exists $ahead{$pkg} ) {
+			printf "NOT AHEAD:%s is (no longer) ahead of the LTS release, remove marker!\n", $pkg;
+			$error_count++;
+		}
+		if ( version_compare($versions{$pkg}, $lts{$pkg}) == -1 ) {
+			#printf "AHEAD  %s is %s here, but only %s in the tracked LTS release.\n" ,
+			#	$pkg, $available{$pkg}, $lts{$pkg};
+			$stats{"lts-upgradeable"}++;
+		}
 	}
 }
 

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