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

Bug#205960: Version comparing and ~



On Mon, Aug 18, 2003 at 11:48:15AM -0400, Matt Zimmerman wrote:

> On Mon, Aug 18, 2003 at 11:36:46AM +0200, Koblinger Egmont wrote:
> > The first entry in 0.5.5's changelog says it should work correctly since
> > then.
> 
> 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.

-- 
 - mdz



Reply to: