summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/debfile.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index d542adae..22f96bfc 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -456,6 +456,15 @@ class DebPackage(object):
"""
self._dbg(3, "compare_to_version_in_cache")
pkgname = self._sections["Package"]
+ architecture = self._sections["Architecture"]
+
+ # Architecture all gets mapped to the native architecture internally
+ if architecture == 'all':
+ architecture = apt_pkg.config.find("APT::Architecture")
+
+ # Arch qualify the package name
+ pkgname = ":".join([pkgname, architecture])
+
debver = self._sections["Version"]
self._dbg(1, "debver: %s" % debver)
if pkgname in self._cache: