summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-15 14:26:08 -0400
committerChris Lumens <clumens@redhat.com>2009-04-16 09:36:12 -0400
commit2a32cebdf2201d5affc41f8a33824a400a462333 (patch)
treecf57c50424779cd3c4bb3dbe37e1ea9fa2fd76b8 /packages.py
parent6118e0f113e5def85effe53980e54017256b43fd (diff)
downloadanaconda-2a32cebdf2201d5affc41f8a33824a400a462333.tar.gz
anaconda-2a32cebdf2201d5affc41f8a33824a400a462333.tar.xz
anaconda-2a32cebdf2201d5affc41f8a33824a400a462333.zip
Add a "File Bug" button to the catch-all partitioning exception handler.
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages.py b/packages.py
index 26f17c23d..9301a0f1e 100644
--- a/packages.py
+++ b/packages.py
@@ -33,6 +33,7 @@ import string
import language
import shutil
import traceback
+from exception import handleException
from flags import flags
from product import *
from constants import *
@@ -178,13 +179,17 @@ def turnOnFilesystems(anaconda):
sys.exit(1)
except Exception as msg:
# catch-all
- anaconda.intf.detailedMessageWindow(_("Storage Activation Failed"),
+ rc = anaconda.intf.detailedMessageWindow(_("Storage Activation Failed"),
_("An error was encountered while "
"activating your storage configuration."),
msg,
type = "custom",
- custom_buttons = [_("_Exit installer")])
- sys.exit(1)
+ custom_buttons = [_("_File Bug"), _("_Exit installer")])
+
+ if rc == 0:
+ handleException(anaconda, sys.exc_info())
+ elif rc == 1:
+ sys.exit(1)
if not anaconda.id.upgrade:
anaconda.id.storage.fsset.turnOnSwap(anaconda.intf)