diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-26 22:13:19 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-26 22:13:19 +0200 |
| commit | e709c67d58ddd99b11f8e6e466dca487a844a880 (patch) | |
| tree | e16bd8f055fc9d3a8a6eb7f69d650a35061c5d1a /DistUpgrade | |
| parent | 8a6925c34753aa87dea38a5b12ea6f80d2d369e5 (diff) | |
| download | python-apt-e709c67d58ddd99b11f8e6e466dca487a844a880.tar.gz | |
* DistUpgrade/DistUpgradeCache.py:
- use the right packagename when doing the KeepInstalledSection
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 4 |
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): |
