diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-23 09:55:29 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-23 09:55:29 +0200 |
| commit | 3f8b06652b6bce05452cbbd7a6b916562a9762f1 (patch) | |
| tree | 6276ac3ba1f7227093ad33f7fb112cac9852878a /DistUpgrade/DistUpgradeCache.py | |
| parent | b5549bd1e07a6d3dfa41f97116e687709ed4da78 (diff) | |
| download | python-apt-3f8b06652b6bce05452cbbd7a6b916562a9762f1.tar.gz | |
* DistUpgrade/DistUpgradeCache.py:
- fix in clear()
* UpdateManager/UpdateManager.py:
- fixes in the new DistUpgrader code
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py index 99f3b585..8427bb3d 100644 --- a/DistUpgrade/DistUpgradeCache.py +++ b/DistUpgrade/DistUpgradeCache.py @@ -68,7 +68,7 @@ class MyCache(apt.Cache): self.to_remove.append(pkg.name) def clear(self): - self.depcache.Init() + self._depcache.Init() def restore_snapshot(self): """ restore a snapshot """ @@ -318,3 +318,8 @@ class MyCache(apt.Cache): if foreign: foreign_pkgs.add(pkg.name) return foreign_pkgs + +if __name__ == "__main__": + import DistUpgradeConfigParser + c = MyCache(DistUpgradeConfigParser.DistUpgradeConfig(".")) + c.clear() |
