Author: adam-guest
Date: 2008-03-18 18:27:07 +0000 (Tue, 18 Mar 2008)
New Revision: 1172
Modified:
trunk/debian/changelog
trunk/scripts/uscan.pl
Log:
uscan: Correctly handle an explicit upstream-version of 0
(Closes: #471503)
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-03-18 12:31:03 UTC (rev 1171)
+++ trunk/debian/changelog 2008-03-18 18:27:07 UTC (rev 1172)
@@ -15,6 +15,8 @@
disguising a non shell script as one
* debdiff: Escape package names when normalising path names
(Closes: #471282)
+ * uscan: Correctly handle an explicit upstream-version of 0
+ (Closes: #471503)
-- Adam D. Barratt <[EMAIL PROTECTED]> Sun, 16 Mar 2008 19:40:40 +0000
Modified: trunk/scripts/uscan.pl
===================================================================
--- trunk/scripts/uscan.pl 2008-03-18 12:31:03 UTC (rev 1171)
+++ trunk/scripts/uscan.pl 2008-03-18 18:27:07 UTC (rev 1172)
@@ -736,7 +736,7 @@
(undef, $lastversion, $action) = split ' ', $line, 3;
}
- if ((!$lastversion or $lastversion eq 'debian') and !$pkg_version) {
+ if ((!$lastversion or $lastversion eq 'debian') and not defined
$pkg_version) {
warn "$progname warning: Unable to determine current version\n in
$watchfile, skipping:\n $line\n";
return 1;
}
@@ -956,7 +956,7 @@
}
}
if (! $lastversion or $lastversion eq 'debian') {
- if ($pkg_version) {
+ if (defined $pkg_version) {
$lastversion=$pkg_version;
} else {
warn "$progname warning: Unable to determine current version\n in
$watchfile, skipping:\n $line\n";
--
To unsubscribe, send mail to [EMAIL PROTECTED]