diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-12 13:09:19 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-12 13:09:19 +0100 |
| commit | 2d55cca343d020d2c31267396c36915ce6dc430c (patch) | |
| tree | a8074e47e210eec3fc86131c5f97a24cc49fe3dc | |
| parent | e98464bc06bd69d6b95b7966f69df5230546dc49 (diff) | |
| download | python-apt-2d55cca343d020d2c31267396c36915ce6dc430c.tar.gz | |
* more small fixes in the cruft calculation code
| -rw-r--r-- | DistUpgrade/DistUpgradeControler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index 872e19c7..5572ac99 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -26,6 +26,7 @@ import sys import os import subprocess import logging +import re from UpdateManager.Common.SimpleGladeApp import SimpleGladeApp from SoftwareProperties.aptsources import SourcesList, SourceEntry @@ -397,7 +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 or \ - pkg.name in self._inRemovalBlacklist(pkg.name): + self._inRemovalBlacklist(pkg.name): self.cache.restore_snapshot() return False return True @@ -420,7 +421,7 @@ class DistUpgradeControler(object): if pkgname not in self.foreign_pkgs: if not self._tryMarkObsoleteForRemoval(pkgname, remove_candidates): - logging.debug("'%s' scheduled for remove but not in remove_candiates, skipping", pkg.name) + logging.debug("'%s' scheduled for remove but not in remove_candiates, skipping", pkgname) logging.debug("Finish checking for obsolete pkgs") changes = self.cache.getChanges() if len(changes) > 0 and \ |
