[debhelper-devel] Bug#894895: debhelper: does not accept "0" (zero) as a valid version number in debian/changelog

Chris Lamb lamby at debian.org
Thu Apr 5 15:34:59 UTC 2018


tags 894895 + patch
thanks

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm
index a12ff7c..11f8d0d 100644
--- a/lib/Debian/Debhelper/Dh_Lib.pm
+++ b/lib/Debian/Debhelper/Dh_Lib.pm
@@ -910,7 +910,7 @@ sub pkgfilename {
 		# Get the package version.
 		$dh{VERSION} = $res->{'Version'};
 		# Did the changelog parse fail?
-		if ($dh{VERSION} eq q{}) {
+		unless (ref($dh{VERSION})) {
 			error("changelog parse failure");
 		}
 


More information about the debhelper-devel mailing list