aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/control2
-rwxr-xr-xmini-dinstall4
2 files changed, 3 insertions, 3 deletions
diff --git a/debian/control b/debian/control
index 0c41fa1..c861498 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Vcs-Browser: http://git.debian.org/?p=mini-dinstall/mini-dinstall.git
Package: mini-dinstall
Architecture: all
-Depends: ${python:Depends}, python-apt, apt-utils, python-crypto, ${misc:Depends}
+Depends: ${python:Depends}, python-apt (>= 0.7.93), apt-utils, python-crypto, ${misc:Depends}
Recommends: gpgv
Suggests: debian-keyring
Description: daemon for updating Debian packages in a repository
diff --git a/mini-dinstall b/mini-dinstall
index 9359fa5..36c3d47 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -884,7 +884,7 @@ class ArchiveDir:
if not self._keep_old:
found_old_bins = 0
for (oldversion, oldarch) in map(lambda x: x[1:], self._get_package_versions()):
- if not all_arches.has_key(oldarch) and apt_pkg.VersionCompare(oldversion, version) < 0:
+ if not all_arches.has_key(oldarch) and apt_pkg.version_compare(oldversion, version) < 0:
found_old_bins = 1
for (pkgname, arch) in map(lambda x: x[2:], newfiles):
if arch == 'source' and found_old_bins:
@@ -921,7 +921,7 @@ class ArchiveDir:
if match and match.group(1) == sourcename:
if not is_native:
(oldupstreamver, olddebianver) = parse_versions(match.group(2))
- if apt_pkg.VersionCompare(oldupstreamver, newupstreamver) < 0:
+ if apt_pkg.version_compare(oldupstreamver, newupstreamver) < 0:
self._logger.debug('old upstream tarball "%s" version %s < %s, tagging for deletion' % (file, oldupstreamver, newupstreamver))
oldfiles.append((file, target))
continue