summaryrefslogtreecommitdiff
path: root/DistUpgrade
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-09 11:04:01 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-09 11:04:01 +0100
commit1efb4bfec356efef45a7821a6934e6925a922a80 (patch)
tree7a9334a0da70e53ad5a72f972290a2e03244e721 /DistUpgrade
parentf944e19b685708007bb2eaf76959fcd50da7ade9 (diff)
downloadpython-apt-1efb4bfec356efef45a7821a6934e6925a922a80.tar.gz
* various fixes in the metapkg detection code
Diffstat (limited to 'DistUpgrade')
-rw-r--r--DistUpgrade/DistUpgradeControler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 0bb03468..91624f86 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -95,10 +95,10 @@ class DistUpgradeControler(object):
"edubuntu-desktop": ["edubuntu-artwork", "tuxpaint"]
}
# helper
- def metaPkgInstalled(self):
+ def metaPkgInstalled():
metapkg_found = False
for key in metapkgs:
- if self.cache[key].isInstalled or self.cache[key].markedInstall:
+ if self.cache.has_key(key) and (self.cache[key].isInstalled or self.cache[key].markedInstall):
metapkg_found=True
return metapkg_found
# check if we have a meta-pkg, if not, try to guess which one to pick
@@ -109,8 +109,8 @@ class DistUpgradeControler(object):
for pkg in metapkgs[key]:
deps_found |= self.cache[pkg].isInstalled
if deps_found:
- print "guessing '%s' as missing meta-pkg" % pkg
- self.cache[key].markInstall
+ print "guessing '%s' as missing meta-pkg" % key
+ self.cache[key].markInstall()
break
# check if we actually found one
if not metaPkgInstalled():