diff options
author | Matt Wilson <msw@redhat.com> | 2001-03-26 20:41:39 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-03-26 20:41:39 +0000 |
commit | c7482468eb19cc74fcfc9fcc6d7b6d7faf26f1a6 (patch) | |
tree | 793268857db822cf745ba5067e03fa233bc44c40 /anaconda | |
parent | a2d28cb8bd77370ab5ceaefc27159920cc223a3c (diff) | |
download | anaconda-c7482468eb19cc74fcfc9fcc6d7b6d7faf26f1a6.tar.gz anaconda-c7482468eb19cc74fcfc9fcc6d7b6d7faf26f1a6.tar.xz anaconda-c7482468eb19cc74fcfc9fcc6d7b6d7faf26f1a6.zip |
fix informative 'why we are not doing gui mode' messages
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -342,6 +342,13 @@ if (display_mode == 'g'): display_mode = 't' from text import InstallInterface elif (display_mode == 't'): + if ((len (method) >= 6 and method[:6] == "ftp://") + or (len (method) >= 7 and method[:7] == "http://")): + print _("Graphical installation not available for %s installs. " + "Starting text mode.") % (string.split(method, ':')[0],) + elif len (method) >= 5 and method[:5] == "hd://": + print _("Graphical installation not available for hard drive installs. " + "Starting text mode.") from text import InstallInterface else: sys.exit(1) @@ -426,11 +433,9 @@ if not reconfigOnly: from image import NfsInstallMethod method = NfsInstallMethod(method[5:]) elif (method[0:6] == "ftp://" or method[0:7] == "http://"): - print _("Graphical installation not available for %s installs. Starting text mode.") % (string.split(method, ':')[0],) from urlinstall import UrlInstallMethod method = UrlInstallMethod(method) elif (method[0:5] == "hd://"): - print _("Graphical installation not available for hard drive installs. Starting text mode.") method = method[5:] i = string.index(method, ":") |