diff options
author | Matt Wilson <msw@redhat.com> | 2003-01-08 23:05:20 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2003-01-08 23:05:20 +0000 |
commit | d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7 (patch) | |
tree | 5001ed3cb0b7d7441025980386103fc6db051212 /text.py | |
parent | f902df7c58e36ab00d37b0e6e497f31bd9b9cd25 (diff) | |
download | anaconda-d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7.tar.gz anaconda-d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7.tar.xz anaconda-d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7.zip |
save to floppy only if you have a floppy drive. Needed as part of s390 merge, but applies to many platforms and notebooks these days
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -286,15 +286,15 @@ class InstallInterface: return 0 def exceptionWindow(self, title, text): - ugh = "%s\n\n" % (_("An unhandled exception has occurred. This " - "is most likely a bug. Please copy the " - "full text of this exception or save the crash " - "dump to a floppy then file a detailed bug " - "report against anaconda at " - "http://bugzilla.redhat.com/bugzilla/"),) - - rc = ButtonChoiceWindow(self.screen, title, ugh + text, - buttons=[TEXT_OK_BUTTON, _("Save"), _("Debug")]) + floppyDevices = len(isys.floppyDriveDict()) + if floppyDevices > 0 or DEBUG: + ugh = "%s\n\n" % (exceptionText,) + buttons=[TEXT_OK_BUTTON, _("Save"), _("Debug")] + else: + ugh = "%s\n\n" % (exceptionTextNoFloppy,) + buttons=[TEXT_OK_BUTTON, _("Debug")] + + rc = ButtonChoiceWindow(self.screen, title, ugh + text, buttons) if rc == string.lower(_("Debug")): return 1 elif rc == string.lower(_("Save")): |