diff options
author | Matt Wilson <msw@redhat.com> | 2001-01-03 23:42:35 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-01-03 23:42:35 +0000 |
commit | c6c57bef223eaf7a172e94f0b9e0fb3af9d411e1 (patch) | |
tree | 14cb6791a607670c7ff26380c0ae50b40a7eaf8a /iw/package_gui.py | |
parent | 9c962ad1986ae005b55f08fc8826aed7b2988a65 (diff) | |
download | anaconda-c6c57bef223eaf7a172e94f0b9e0fb3af9d411e1.tar.gz anaconda-c6c57bef223eaf7a172e94f0b9e0fb3af9d411e1.tar.xz anaconda-c6c57bef223eaf7a172e94f0b9e0fb3af9d411e1.zip |
set up comps.py to look at linguas for expressions. don't set linguas when setting language in todo. provide some useful messages in package selection
Diffstat (limited to 'iw/package_gui.py')
-rw-r--r-- | iw/package_gui.py | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py index fda195639..3bf35a277 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -484,7 +484,7 @@ class PackageSelectionWindow (InstallWindow): ics.readHTML ("sel-group") self.selectIndividualPackages = FALSE - self.files_found = "TRUE" + self.files_found = "FALSE" def getPrev (self): self.todo.comps.setSelectionState(self.origSelection) @@ -524,15 +524,33 @@ class PackageSelectionWindow (InstallWindow): self.todo.getHeaderList () self.todo.getCompsList() threads_enter () + self.files_found = "TRUE" + except ValueError, msg: + extra = msg + except RuntimeError, msg: + extra = msg + except TypeError, msg: + extra = msg + except KeyError, key: + extra = ("The comps file references a package called \"%s\" which " + "could not be found." % (key,)) except: - self.files_found = "FALSE" + extra = "" if self.files_found == "FALSE": - text = (_("An error has occurred while retreiving hdlist file. The installation media or image is probably corrupt. Installer will exit now.")) + if extra: + text = (_("The following error occurred while " + "retreiving hdlist file:\n\n" + "%s\n\n" + "Installer will exit now.") % extra) + else: + text = (_("An error has occurred while retreiving the hdlist " + "file. The installation media or image is " + "probably corrupt. Installer will exit now.")) win = ErrorWindow (text) else: self.origSelection = self.todo.comps.getSelectionState() - + sw = GtkScrolledWindow () sw.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) |