summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-26 20:41:39 +0000
committerMatt Wilson <msw@redhat.com>2001-03-26 20:41:39 +0000
commitc7482468eb19cc74fcfc9fcc6d7b6d7faf26f1a6 (patch)
tree793268857db822cf745ba5067e03fa233bc44c40 /anaconda
parenta2d28cb8bd77370ab5ceaefc27159920cc223a3c (diff)
downloadanaconda-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-xanaconda9
1 files changed, 7 insertions, 2 deletions
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, ":")