summaryrefslogtreecommitdiff
path: root/UpdateManager/UpdateManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'UpdateManager/UpdateManager.py')
-rw-r--r--UpdateManager/UpdateManager.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 20001937..2bb9ed0e 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -683,10 +683,11 @@ class UpdateManager(SimpleGladeApp):
sys.exit()
try:
- self.cache = MyCache(GtkProgress.GtkOpProgress(self.dialog_cacheprogress,
- self.progressbar_cache,
- self.label_cache,
- self.window_main))
+ progress = GtkProgress.GtkOpProgress(self.dialog_cacheprogress,
+ self.progressbar_cache,
+ self.label_cache,
+ self.window_main)
+ self.cache = MyCache(progress)
except AssertionError:
# we assert a clean cache
msg=("<big><b>%s</b></big>\n\n%s"% \
@@ -703,6 +704,8 @@ class UpdateManager(SimpleGladeApp):
dialog.run()
dialog.destroy()
sys.exit(1)
+ else:
+ progress.hide()
#apt_pkg.Config.Set("Debug::pkgPolicy","1")
#self.depcache = apt_pkg.GetDepCache(self.cache)
self.cache._depcache.ReadPinFile()