From a55e93f2736d4370472c3bfbfd683feb87793539 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 18 Jan 2006 16:03:38 +0100 Subject: * another typo in the DistUpgradeCache code --- DistUpgrade/DistUpgradeCache.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'DistUpgrade') 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 -- cgit v1.2.3