summaryrefslogtreecommitdiff
path: root/UpdateManager/UpdateManager.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-16 14:39:51 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-16 14:39:51 +0100
commit6184ae8cff4517797fddf458cedb7d1ec8bbda1a (patch)
treeaded64531a3ebd0eb0b85825ac053a52611e0782 /UpdateManager/UpdateManager.py
parentde1890e85346b00fb2b0b70e0dafcf0a72b68592 (diff)
downloadpython-apt-6184ae8cff4517797fddf458cedb7d1ec8bbda1a.tar.gz
* fix locking error
Diffstat (limited to 'UpdateManager/UpdateManager.py')
-rw-r--r--UpdateManager/UpdateManager.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 299cf17d..0c655ac6 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -500,6 +500,11 @@ class UpdateManager(SimpleGladeApp):
scroll.show_all()
dialog.run()
dialog.destroy()
+ # unlock the cache here, it will be locked again in fillstore
+ try:
+ apt_pkg.PkgSystemUnLock()
+ except SystemError:
+ pass
self.fillstore()
def on_button_help_clicked(self, widget):
@@ -814,7 +819,7 @@ class UpdateManager(SimpleGladeApp):
# get the lock
try:
apt_pkg.PkgSystemLock()
- except SystemError:
+ except SystemError, e:
d = gtk.MessageDialog(parent=self.window_main,
flags=gtk.DIALOG_MODAL,
type=gtk.MESSAGE_ERROR,
@@ -824,6 +829,7 @@ class UpdateManager(SimpleGladeApp):
_("This usually means that another package management "
"application (like apt-get or aptitude) already running. "
"Please close that application first")))
+ print "error from apt: '%s'" % e
res = d.run()
d.destroy()
sys.exit()