summaryrefslogtreecommitdiff
path: root/DistUpgrade
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-18 16:03:38 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-18 16:03:38 +0100
commita55e93f2736d4370472c3bfbfd683feb87793539 (patch)
tree7dc44078c1aadeb37aa55d5819f468de6599aa76 /DistUpgrade
parent2c89e6425f7a26365333de615abc920dc28d4fb8 (diff)
downloadpython-apt-a55e93f2736d4370472c3bfbfd683feb87793539.tar.gz
* another typo in the DistUpgradeCache code
Diffstat (limited to 'DistUpgrade')
-rw-r--r--DistUpgrade/DistUpgradeCache.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index 3c7773cb..3687ac80 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -195,12 +195,12 @@ class MyCache(apt.Cache):
# this is a delete candidate, only actually delete,
# if it dosn't remove other packages depending on it
# that are not obsolete as well
- self.cache.create_snapshot()
- self.cache[pkgname].markDelete()
- for pkg in self.cache.getChanges():
+ self.create_snapshot()
+ self[pkgname].markDelete()
+ for pkg in self.getChanges():
if pkg.name not in remove_candidates or \
pkg.name in self.foreign_pkgs or \
self._inRemovalBlacklist(pkg.name):
- self.cache.restore_snapshot()
+ self.restore_snapshot()
return False
return True