debian revision of 0 not considered equivalent to absent debian revision

Bug #540228 reported by Jelmer Vernooij
6
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.VersionCompare("1.0", "1.0-0")
-1
>>>

(python-apt's VersionCompare is just a python wrapper around apt's
actual implementation)

Michael Vogt (mvo)
Changed in apt (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.7.25.3ubuntu4

---------------
apt (0.7.25.3ubuntu4) lucid; urgency=low

  [ David Kalnischkies ]
  * apt-pkg/deb/debversion.cc:
    - 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/deb/dpkgpm.cc:
   - fix error message construction in OpenLog()
 -- Michael Vogt <email address hidden> Fri, 26 Mar 2010 16:57:49 +0100

Changed in apt (Ubuntu):
status: Fix Committed → Fix Released
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 report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.