summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DistUpgrade/DistUpgradeCache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index 00c0013b..318c30cd 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -133,7 +133,7 @@ class MyCache(apt.Cache):
for section in self.config.getlist("Distro","KeepInstalledSection"):
for pkg in self:
if pkg.markedDelete and pkg.section == section:
- keepInstalled(self, pkgname, "Distro KeepInstalledSection rule: %s" % section)
+ keepInstalled(self, pkg.name, "Distro KeepInstalledSection rule: %s" % section)
# the the per-metapkg rules
for key in self.metapkgs:
if self.has_key(key) and (self[key].isInstalled or
@@ -141,7 +141,7 @@ class MyCache(apt.Cache):
for section in self.config.getlist(key,"KeepInstalledSection"):
for pkg in self:
if pkg.markedDelete and pkg.section == section:
- keepInstalled(self, pkgname, "%s KeepInstalledSection rule: %s" % (key, section))
+ keepInstalled(self, pkg.name, "%s KeepInstalledSection rule: %s" % (key, section))
def postUpgradeRule(self):