[python-debian/master] Migrate to new python-apt API
John Wright
john at johnwright.org
Fri Apr 15 08:52:47 UTC 2011
Patch courtesy of Julian Andres Klode <jak at debian.org>.
Closes: #604544
---
debian/changelog | 7 +++++++
lib/debian/debian_support.py | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d6643c1..77583b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,13 @@ python-debian (0.1.19) UNRELEASED; urgency=low
-- John Wright <jsw at debian.org> Wed, 30 Mar 2011 00:47:04 -0700
+python-debian (0.1.18+nmu1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Migrate to new python-apt API (Closes: #604544)
+
+ -- Julian Andres Klode <jak at debian.org> Tue, 05 Apr 2011 11:02:08 +0200
+
python-debian (0.1.18) unstable; urgency=low
* Support installation together with older versions of python-apt.
diff --git a/lib/debian/debian_support.py b/lib/debian/debian_support.py
index 2cec940..d9ce24a 100644
--- a/lib/debian/debian_support.py
+++ b/lib/debian/debian_support.py
@@ -172,7 +172,7 @@ class AptPkgVersion(BaseVersion):
super(AptPkgVersion, self).__init__(version)
def __cmp__(self, other):
- return apt_pkg.VersionCompare(str(self), str(other))
+ return apt_pkg.version_compare(str(self), str(other))
# NativeVersion based on the DpkgVersion class by Raphael Hertzog in
# svn://svn.debian.org/qa/trunk/pts/www/bin/common.py r2361
--
1.7.1
More information about the pkg-python-debian-commits
mailing list