Comment 5 for bug 484017

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 484017] [NEW] error on version numbers < that in the packaging

On Sun Nov 22 23:43:57 UTC 2009 Robert Collins wrote:
> dpkg-genchanges and dpkg-parsechangelog assume that the log is totally
> sorted in dpkg-compareversion AFAIK. I haven't actually checked the code
> myself though, so there could be a propogating rumour problem here.

jw2328@flash:builddeb/trunk:10080:0% dpkg-parsechangelog
Source: bzr-builddeb
Version: 2.2~ubuntu4
Distribution: UNRELEASED
Urgency: low
Maintainer: James Westby <email address hidden>
Date: Tue, 22 Sep 2009 19:44:46 +0100
Changes:
 bzr-builddeb (2.2~ubuntu4) UNRELEASED; urgency=low
 .
   *
jw2328@flash:builddeb/trunk:10081:0% dch -v 2.1
dch: fatal error at line 999:
New version specified (2.1) is less than
the current version number (2.2~ubuntu4)! Use -b to force.
zsh: exit 25 dch -v 2.1
jw2328@flash:builddeb/trunk:10082:25% dch -v 2.1 -b
dch warning: new version (2.1) is less than
the current version number (2.2~ubuntu4).
jw2328@flash:builddeb/trunk:10083:0% dpkg-parsechangelog
Source: bzr-builddeb
Version: 2.1
Distribution: karmic
Urgency: low
Maintainer: James Westby <email address hidden>
Date: Sun, 22 Nov 2009 21:53:23 -0500
Changes:
 bzr-builddeb (2.1) karmic; urgency=low
 .
   *
jw2328@flash:builddeb/trunk:10084:0% dpkg-genchanges
dpkg-genchanges: warning: the current version (2.1) is smaller than the previous one (2.2~ubuntu4)
dpkg-genchanges: error: cannot read files list file: No such file or directory
zsh: exit 2 dpkg-genchanges
jw2328@flash:builddeb/trunk:10085:2%

So you get warning, but they are not fatal. (The fatal error at the end is that
I hadn't built, not the changelog ordering)

Thanks,

James