Author: adam-guest
Date: 2008-04-08 17:20:05 +0000 (Tue, 08 Apr 2008)
New Revision: 1317
Modified:
trunk/scripts/debsign.sh
Log:
Make the format check more resiliant
Modified: trunk/scripts/debsign.sh
===================================================================
--- trunk/scripts/debsign.sh 2008-04-08 15:53:45 UTC (rev 1316)
+++ trunk/scripts/debsign.sh 2008-04-08 17:20:05 UTC (rev 1317)
@@ -386,9 +386,10 @@
$format=$1;
die "Unrecognised .changes format: $format\n"
unless $format =~ /^\d+(\.\d+)*$/;
- $format+=0;
+ ($major, $minor) = split(/\./, $format);
+ $major+=0;$minor+=0;
die "Unsupported .changes format: $format\n"
- if($format > 1.8 or $format < 1.7);
+ if($major!=1 or $minor > 8 or $minor < 7);
}
/^Files:/i && ($infiles=1,$insha1=0,$insha256=0);
if(/^Checksums-Sha1:/i) {$insha1=1;$infiles=0;$insha256=0;}
--
To unsubscribe, send mail to [EMAIL PROTECTED]