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

Bug#580036: marked as done (1 vs 1-0 version comparison gives wrong result)



Your message dated Mon, 3 May 2010 13:17:13 +0200
with message-id <y2mc64043e61005030417u1223661dg5c524ea844fbb91@mail.gmail.com>
and subject line Re: Bug#580036: 1 vs 1-0 version comparison gives wrong result
has caused the Debian Bug report #580036,
regarding 1 vs 1-0 version comparison gives wrong result
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
580036: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580036
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python-apt
Version: 0.7.94.2

$ python -c 'import apt_pkg; apt_pkg.init(); print apt_pkg.VersionCompare("1", "1-0")'
-1

This should print 0 because the versions are equal, according to
policy and dpkg.



--- End Message ---
--- Begin Message ---
package python-apt apt
reassign 580036 apt
thanks

Version: 0.7.26~exp3

2010/5/3 Florian Weimer <fw@deneb.enyo.de>:
> $ python -c 'import apt_pkg; apt_pkg.init(); print apt_pkg.VersionCompare("1", "1-0")'
> -1
>
> This should print 0 because the versions are equal, according to
> policy and dpkg.

Was a bug in the underlying libapt and is fixed in 0.7.26~exp3.

  * apt-pkg/deb/debversion.cc:
    - consider absent of debian revision equivalent to 0 (Closes: #573592)

with a python-apt compiled against this version:

$ python -c 'import apt_pkg; apt_pkg.init(); print
apt_pkg.VersionCompare("1", "1-0")'
0


Best regards,

David Kalnischkies


--- End Message ---

Reply to: