Package: sbuild
Version: 0.34
Severity: minor

As "0" is a valid string version for a Debian package, sbuild should
treat version strings as strings, not as numbers, to avoid bogus
warnings like "no Version: field for package foo" on such packages.

The following patch is an attempt to remove one warning message, but
there may be other lines to change so that version strings are always
treated as strings.

diff -ru sbuild-0.34.orig/sbuild sbuild-0.34/sbuild
--- sbuild-0.34.orig/sbuild     2004-09-17 15:17:41.000000000 +0200
+++ sbuild-0.34/sbuild  2005-03-18 11:49:40.000000000 +0100
@@ -1614,7 +1614,7 @@
                                         $result{$pkg}->{'Version'} eq 
'=*=PROVIDED=*=');
                        next;
                }
-               if (!$version) {
+               if ($version eq "") {
                        print PLOG "sbuild: parse error in 
$main::chroot_dir/var/lib/dpkg/status: ",
                                           "no Version: field for package 
$pkg\n";
                        next;

Thanks.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to