]> git.donarmstrong.com Git - dak.git/blobdiff - daklib/changesutils.py
stop using deprecated python-apt functions
[dak.git] / daklib / changesutils.py
index 3a4c6dd77a292582592a51072df8688d07fcf589..d1dbad84a8149c1dc7cc3bf40fbc4e31062c3c07 100755 (executable)
@@ -45,7 +45,7 @@ def indiv_sg_compare (a, b):
     """Sort by source name, source, version, 'have source', and
        finally by filename."""
     # Sort by source version
-    q = apt_pkg.VersionCompare(a["version"], b["version"])
+    q = apt_pkg.version_compare(a["version"], b["version"])
     if q:
         return -q