summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-06 11:46:06 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-06 11:46:06 +0100
commitd5021367c09c22f7ab6296bbec5f159ee0ab0dda (patch)
tree22288d02481cb1ef4376eaddb1357eab52762663
parentde5a2ac303e5c7b0caa5419b87ea03ed6a4192ca (diff)
downloadpython-apt-d5021367c09c22f7ab6296bbec5f159ee0ab0dda.tar.gz
* DistUpgrade/DistUpgradeCache.py: cache._installMetaPkgs(): support meta-pkgs in universe as well (like xubuntu-desktop)
-rw-r--r--DistUpgrade/DistUpgradeCache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index 2836d297..6826e3ba 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -175,7 +175,8 @@ class MyCache(apt.Cache):
# install (that result in a upgrade and removes a markDelete)
for key in metapkgs:
try:
- if self[key].isInstalled: self[key].markUpgrade()
+ if self.has_key(key) and self[key].isInstalled:
+ self[key].markUpgrade()
except SystemError, e:
logging.debug("Can't mark '%s' for upgrade" % key)
return False