[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 10:54:13 UTC 2018


Package: debhelper
Version: 11.1.6
Severity: normal

Hi,

The following changelog entry:

    sourcepackage (0) UNRELEASED; urgency=low

… results in (eg. when running dh_installchangelogs):

    changelog parse failure

The relevant code in isnative is:

		# Get the package version.
		$dh{VERSION} = $res->{'Version'};
		# Did the changelog parse fail?
		if ($dh{VERSION} eq q{}) {
			error("changelog parse failure");
		}

Where $dh{VERSION} is returned as '0'. I believe this is a valid
version number unless I'm missing something.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-



More information about the debhelper-devel mailing list