diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-03 22:06:13 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-03 22:06:13 +0000 |
commit | 368e9f053bc63a678b23460fa52f1e40093609ef (patch) | |
tree | 37ceda9808189a1077051c8a7d8b662506b34dd0 /packages.py | |
parent | bab1c12084c306f4f97c5411933950b93581baee (diff) | |
download | anaconda-368e9f053bc63a678b23460fa52f1e40093609ef.tar.gz anaconda-368e9f053bc63a678b23460fa52f1e40093609ef.tar.xz anaconda-368e9f053bc63a678b23460fa52f1e40093609ef.zip |
Start to use the anaconda class instead of passing around references to
lots of other objects.
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/packages.py b/packages.py index f2a4ed549..6df2f7cc3 100644 --- a/packages.py +++ b/packages.py @@ -40,22 +40,6 @@ import rhpl.arch import logging log = logging.getLogger("anaconda") -def queryUpgradeContinue(intf, dir): - if dir == DISPATCH_FORWARD: - return - - rc = intf.messageWindow(_("Proceed with upgrade?"), - _("The file systems of the Linux installation " - "you have chosen to upgrade have already been " - "mounted. You cannot go back past this point. " - "\n\n") + - _("Would you like to continue with the upgrade?"), - type="custom", custom_icon=["error","error"], - custom_buttons=[_("Reboot"), _("Yes")]) - if rc == 0: - sys.exit(0) - return DISPATCH_FORWARD - def doPostAction(id, instPath, intf = None): id.instClass.postAction(instPath, flags.serial, intf) @@ -353,13 +337,13 @@ def recreateInitrd (kernelTag, instRoot): stdout = None, stderr = None, searchPath = 1, root = instRoot) -def betaNagScreen(intf, dir): +def betaNagScreen(anaconda): publicBetas = { "Red Hat Linux": "Red Hat Linux Public Beta", "Red Hat Enterprise Linux": "Red Hat Enterprise Linux Public Beta", "Fedora Core": "Fedora Core" } - if dir == DISPATCH_BACK: + if anaconda.dir == DISPATCH_BACK: return DISPATCH_NOOP fileagainst = None @@ -370,7 +354,7 @@ def betaNagScreen(intf, dir): fileagainst = "%s Beta" %(productName,) while 1: - rc = intf.messageWindow( _("Warning! This is pre-release software!"), + rc = anaconda.intf.messageWindow( _("Warning! This is pre-release software!"), _("Thank you for downloading this " "pre-release of %s.\n\n" "This is not a final " @@ -393,7 +377,7 @@ def betaNagScreen(intf, dir): else: msg = _("Your system will now be rebooted...") buttons = [_("_Back"), _("_Reboot")] - rc = intf.messageWindow( _("Rebooting System"), + rc = anaconda.intf.messageWindow( _("Rebooting System"), msg, type="custom", custom_icon="warning", custom_buttons=buttons) |