From c7482468eb19cc74fcfc9fcc6d7b6d7faf26f1a6 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 26 Mar 2001 20:41:39 +0000 Subject: fix informative 'why we are not doing gui mode' messages --- anaconda | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'anaconda') diff --git a/anaconda b/anaconda index 17fd8d5a7..0cac53290 100755 --- a/anaconda +++ b/anaconda @@ -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, ":") -- cgit