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

Bug#205960: Version comparing and ~



* 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?

-- 
Martin Michlmayr
tbm@cyrius.com



Reply to: