[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-parsechangelog -v logic broken

On Wed, 28 Aug 2002, Josip Rodin wrote:

> I wanted the last (first) two entries of my changelog, 1.2.0-1 and 1.2.5-1,
> to be included in the changes file. So, I tried dpkg-buildpackage -rfakeroot
> -v1.2, but that didn't work: all of the entries were included instead.
> (What a stupid fallback, that.)
> By reading the source, I realized the problem: it requires an _exact_
> version after which to show stuff, not just any one.
> If given an inexistent version, parsechangelog/debian should behave nicely
> and compare the version via dpkg --compare-versions or something similar,
> if there's a Perl module to use to do this, even better.
> The problematic line is line 64, which uses 'if $2 eq $since' instead of
> something like 'if system("dpkg --compare-versions $2 lt $since") == 0'.

Make a patch, but give it a new option.

Reply to: