diff options
| author | glatzor@ubuntu.com <> | 2006-07-27 22:34:11 +0200 |
|---|---|---|
| committer | glatzor@ubuntu.com <> | 2006-07-27 22:34:11 +0200 |
| commit | 7403f3888293e0c9ff544a218decaf6b428b2396 (patch) | |
| tree | 91e1f7fb24c696b7eb409acaf0b6a5f8c43fa0df /UpdateManager/UpdateManager.py | |
| parent | c2a2f69a9a9ee1f45290b15e76f6098c4b28bd98 (diff) | |
| parent | 2c1051ac180cfa72705b63c5080771b69dbeaca7 (diff) | |
| download | python-apt-7403f3888293e0c9ff544a218decaf6b428b2396.tar.gz | |
* merge with mvo
* try to find a nice country name for custom mirrors
* if available select a custom mirror in the combobox
Diffstat (limited to 'UpdateManager/UpdateManager.py')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index d4cc7a59..109e4d0c 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -83,11 +83,19 @@ CHANGELOGS_URI="http://changelogs.ubuntu.com/changelogs/pool/%s/%s/%s/%s_%s/chan class MyCache(apt.Cache): def __init__(self, progress): apt.Cache.__init__(self, progress) + self._initDepCache() assert self._depcache.BrokenCount == 0 and self._depcache.DelCount == 0 self.all_changes = {} + def _initDepCache(self): + #apt_pkg.Config.Set("Debug::pkgPolicy","1") + #self.depcache = apt_pkg.GetDepCache(self.cache) + #self._depcache = apt_pkg.GetDepCache(self._cache) + self._depcache.ReadPinFile() + if os.path.exists(SYNAPTIC_PINFILE): + self._depcache.ReadPinFile(SYNAPTIC_PINFILE) + self._depcache.Init() def clean(self): - for pkg in self: - pkg.markKeep() + self._initDepCache() def saveDistUpgrade(self): """ this functions mimics a upgrade but will never remove anything """ self._depcache.Upgrade(True) @@ -755,13 +763,6 @@ class UpdateManager(SimpleGladeApp): sys.exit(1) else: progress.hide() - #apt_pkg.Config.Set("Debug::pkgPolicy","1") - #self.depcache = apt_pkg.GetDepCache(self.cache) - self.cache._depcache.ReadPinFile() - if os.path.exists(SYNAPTIC_PINFILE): - self.cache._depcache.ReadPinFile(SYNAPTIC_PINFILE) - self.cache._depcache.Init() - def check_auto_update(self): # Check if automatic update is enabled. If not show a dialog to inform |
