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

Bug#205960: Version comparing and ~



On Tue, 19 Aug 2003, Martin Michlmayr wrote:

> * Matt Zimmerman <mdz@debian.org> [2003-08-18 12:32]:
> > > Yes, this was clearly the intention, but the behaviour doesn't match.
> >
> > OK, I see the problem.  It's hitting the end of the string before it
> > compares the '~', so the shorter version number (3.0) is considered smaller
> > than the longer (3.0~rc1).  It works in dpkg because it continues its
> > comparison onto the terminating null byte.  The interface for apt, though,
> > is such that the string doesn't need to be null terminated at this point.
> > I'll see about fixing it.
>
> Is it possible to have a set of regression tests for these kind of
> things?

I have plans, for the new dpkg, to export this version compare thru a library,
that hopefully apt can link to.

I also have plans to have tons of test cases for the new code base.

Oh, and I'm not even calling certain people c++ weenies. :)




Reply to: