diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-18 16:03:38 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-18 16:03:38 +0100 |
| commit | a55e93f2736d4370472c3bfbfd683feb87793539 (patch) | |
| tree | 7dc44078c1aadeb37aa55d5819f468de6599aa76 | |
| parent | 2c89e6425f7a26365333de615abc920dc28d4fb8 (diff) | |
| download | python-apt-a55e93f2736d4370472c3bfbfd683feb87793539.tar.gz | |
* another typo in the DistUpgradeCache code
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 8 |
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 |
