debian revision of 0 not considered equivalent to absent debian revision
Bug #540228 reported by
Jelmer Vernooij
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apt
According to Policy 5.6.12 the absence of a debian revision should be
considered equivalent to the presence of a debian revision of 0 (this
was clarified somewhere in 2008).
dpkg apparently works this way but apt does not:
$ python
Python 2.5.5 (r255:77872, Feb 2 2010, 00:25:36)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt_pkg
>>> apt_pkg.init()
>>> apt_pkg.
-1
>>>
(python-apt's VersionCompare is just a python wrapper around apt's
actual implementation)
Related branches
Changed in apt (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
status: | In Progress → Fix Committed |
Changed in apt (Debian): | |
status: | Unknown → New |
Changed in apt (Debian): | |
status: | New → Fix Committed |
Changed in apt (Debian): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This bug was fixed in the package apt - 0.7.25.3ubuntu4
---------------
apt (0.7.25.3ubuntu4) lucid; urgency=low
[ David Kalnischkies ] deb/debversion. cc: deb/dpkgpm. cc:
* apt-pkg/
- consider absent of debian revision equivalent to 0 (Closes: #573592)
LP: #540228
* cmdline/apt-get.cc, apt-pkg/cdrom.cc:
- fix memory leaks in error conditions in DoSource()
* apt-pkg/
- fix error message construction in OpenLog()
-- Michael Vogt <email address hidden> Fri, 26 Mar 2010 16:57:49 +0100