diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-22 19:07:42 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-22 19:07:42 +0200 |
| commit | 3c13b603ab6bb720861441a3992bff55831942bf (patch) | |
| tree | 8f2155c20e1063db508abd81d0b9106635ac9f38 /DistUpgrade/DistUpgradeCache.py | |
| parent | 1417e173a98b36e10d0e876f668caef090d7b4b7 (diff) | |
| download | python-apt-3c13b603ab6bb720861441a3992bff55831942bf.tar.gz | |
* DistUpgrade/DistUpgradeCache.py:
- add clear() function that is autoMark friendly
* DistUpgrade/DistUpgradeControler.py:
- bugfixes
- pass the old arguments to the new execed child
* DistUpgrade/dist-upgrade.py:
- remove debug output
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py index 4b6fd680..99f3b585 100644 --- a/DistUpgrade/DistUpgradeCache.py +++ b/DistUpgrade/DistUpgradeCache.py @@ -67,10 +67,12 @@ class MyCache(apt.Cache): if pkg.markedDelete: self.to_remove.append(pkg.name) + def clear(self): + self.depcache.Init() + def restore_snapshot(self): """ restore a snapshot """ - for pkg in self: - pkg.markKeep() + self.clear() for name in self.to_remove: pkg = self[name] pkg.markDelete() |
