summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-10-01 16:34:03 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-10-01 16:34:03 +0200
commit962e6a9e929c33401ed954b861ba65edf7141837 (patch)
treec31dc4494f082cac78291a8d4b81d14dd4c85c38
parentd3d4d322614a44cf84a6f2b40bc21d09bbfb2405 (diff)
parent04ea8dd93af2c59fd58745e0aad6907307bb3047 (diff)
downloadpython-apt-962e6a9e929c33401ed954b861ba65edf7141837.tar.gz
* lp:~mvo/python-apt/fix-debfile-crash:
- fix crash on missing candidates in the multiarch check
-rw-r--r--apt/debfile.py1
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 0 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 2eb807b8..1ebbea32 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -104,6 +104,7 @@ class DebPackage(object):
elif self._cache.is_virtual_package(pkgname):
return pkgname
elif (pkgname in self._cache and
+ self._cache[pkgname].candidate and
self._cache[pkgname].candidate.architecture == "all"):
return pkgname
# now do the real multiarch checking
diff --git a/debian/changelog b/debian/changelog
index 161cacfd..b0ca3efd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ python-apt (0.8.8) UNRELEASED; urgency=low
* merged lp:~sampo555/python-apt/fix_1042916 reuse existing but
disabled sources.list entries instead of duplicating them.
Thanks to "sampo555", LP: #1042916
+ * lp:~mvo/python-apt/fix-debfile-crash:
+ - fix crash on missing candidates in the multiarch check
[ James Hunt ]
* python/cache.cc: PkgCacheGetIsMultiArch(): Return calculated