[Secure-testing-commits] r646 - sarge-checks

Joey Hess joeyh@costa.debian.org
Fri, 25 Mar 2005 02:54:23 +0000


Author: joeyh
Date: 2005-03-25 02:54:22 +0000 (Fri, 25 Mar 2005)
New Revision: 646

Modified:
   sarge-checks/checklist
Log:
'fix whitespace stripping again..


Modified: sarge-checks/checklist
===================================================================
--- sarge-checks/checklist	2005-03-25 02:46:56 UTC (rev 645)
+++ sarge-checks/checklist	2005-03-25 02:54:22 UTC (rev 646)
@@ -83,6 +83,7 @@
 			else {
 				my @fields = split(/\s*\|\s*/, $maddy);
 				my $havver=$fields[1];
+				$version=~s/ *$//; # strip tailing whitespace
 				my $cmp=system("dpkg --compare-versions '$havver' '>=' '$version'");
 				if ($cmp != 0) {
 					if ($html) {