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

Re: dpkg-parsechangelog -v logic broken



On Wed, Aug 28, 2002 at 01:19:35AM -0500, Adam Heath 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.

The people who rely on the old behaviour would still have their wishes
served just fine. And, you'd avoid fixing the manual page if this was
done :)

-- 
     2. That which causes joy or happiness.



Reply to: