summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeControler.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-12 10:53:16 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-12 10:53:16 +0100
commite838d3497a3590d4ddadb793ead655d223cf21d8 (patch)
treee310d5a332f759df27e23efb39f6e03f257f1319 /DistUpgrade/DistUpgradeControler.py
parent65c30ff7d51224dd589ee426d79973d2c2f6bc35 (diff)
downloadpython-apt-e838d3497a3590d4ddadb793ead655d223cf21d8.tar.gz
* more fixes to the cruft detection code
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
-rw-r--r--DistUpgrade/DistUpgradeControler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 55040c55..22f74842 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -75,9 +75,9 @@ class MyCache(apt.Cache):
self.to_remove = []
for pkg in self.getChanges():
if pkg.markedInstall or pkg.markedUpgrade:
- self.to_install.append(name)
+ self.to_install.append(pkg.name)
if pkg.markedDelete:
- self.to_remove.append(name)
+ self.to_remove.append(pkg.name)
def restore_snapshot(self):
""" restore a snapshot """
for pkg in self:
@@ -398,6 +398,7 @@ class DistUpgradeControler(object):
for pkg in self.cache.getChanges():
if pkg.name not in remove_candidates or \
pkg.name in self.foreign_pkgs:
+ logging.debug("'%s' scheduled for remove but in remove_candiates, skipping", pkg.name)
self.cache.restore_snapshot()
if self._view.confirmChanges(_("Remove obsolete Packages?"),
self.cache.getChanges(), 0):