diff options
author | necoro <> | 2006-12-06 22:33:49 +0000 |
---|---|---|
committer | necoro <> | 2006-12-06 22:33:49 +0000 |
commit | 437364739954d8281ad199e2fa0a9fd57ad8c344 (patch) | |
tree | 8f024f3dc4abf4664013a6dd180ea50d499e603e /portato/gui/gtk | |
parent | 285ef518c9f99349153581d9addba665ba3944eb (diff) | |
download | portato-437364739954d8281ad199e2fa0a9fd57ad8c344.tar.gz portato-437364739954d8281ad199e2fa0a9fd57ad8c344.tar.bz2 portato-437364739954d8281ad199e2fa0a9fd57ad8c344.zip |
added handling of masked packages during an update-world; small changes in gentoolkit-code
Diffstat (limited to 'portato/gui/gtk')
-rw-r--r-- | portato/gui/gtk/windows.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 7e8e247..65a9f3f 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -779,8 +779,14 @@ class MainWindow (Window): debug("updating list:", [(x.get_cpv(), y.get_cpv()) for x,y in updating]) try: - for pkg, old_pkg in updating: - self.queue.append(pkg.get_cpv()) + try: + for pkg, old_pkg in updating: + self.queue.append(pkg.get_cpv(), unmask = False) + except PackageNotFoundException, e: + if unmask_dialog(e[0]) == gtk.RESPONSE_YES: + for pkg, old_pkg in updating: + self.queue.append(pkg.get_cpv(), unmask = True) + except BlockedException, e: blocked_dialog(e[0], e[1]) if len(updating): self.doUpdate = True |