diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-16 13:06:55 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-16 13:06:55 +0100 |
| commit | de1890e85346b00fb2b0b70e0dafcf0a72b68592 (patch) | |
| tree | 3445ffb043af78a53f29ba2e962b8b4560f7ccee /UpdateManager | |
| parent | e1f06145f20bf0adf62f3d62c5134b37bd0c5067 (diff) | |
| download | python-apt-de1890e85346b00fb2b0b70e0dafcf0a72b68592.tar.gz | |
* ignore failures when unlocking the cache
Diffstat (limited to 'UpdateManager')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index ccc81f42..299cf17d 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -418,7 +418,10 @@ class UpdateManager(SimpleGladeApp): self.on_treeview_update_cursor_changed(self.treeview_update) def run_synaptic(self, id, action, lock): - apt_pkg.PkgSystemUnLock() + try: + apt_pkg.PkgSystemUnLock() + except SystemError: + pass cmd = ["/usr/sbin/synaptic", "--hide-main-window", "--non-interactive", "--plug-progress-into", "%s" % (id) ] if action == INSTALL: |
