summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-02 16:01:10 -0500
committerChris Lumens <clumens@redhat.com>2009-12-03 13:14:47 -0500
commite1cf0ff896a5ed12733a554af79c6ad45287d9b8 (patch)
tree1a0cea7cbd53969776c43ccfe077e0386350ab05 /anaconda
parentf11637c8d8ec9370a14284966be2f97de385b466 (diff)
downloadanaconda-e1cf0ff896a5ed12733a554af79c6ad45287d9b8.tar.gz
anaconda-e1cf0ff896a5ed12733a554af79c6ad45287d9b8.tar.xz
anaconda-e1cf0ff896a5ed12733a554af79c6ad45287d9b8.zip
Complain if we're started in test or rootPath mode instead of aborting.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda10
1 files changed, 10 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index ae83d7cb4..5cce81bad 100755
--- a/anaconda
+++ b/anaconda
@@ -233,6 +233,12 @@ def parseOptions():
op.add_option("--updates", dest="updateSrc", action="store", type="string")
op.add_option("--dogtail", dest="dogtail", action="store", type="string")
+ # Deprecated, unloved, unused
+ op.add_option("-r", "--rootPath", dest="unsupportedMode",
+ action="store_const", const="root path")
+ op.add_option("-t", "--test", dest="unsupportedMode",
+ action="store_const", const="test")
+
return op.parse_args()
def setupPythonPath():
@@ -640,6 +646,10 @@ if __name__ == "__main__":
(opts, args) = parseOptions()
+ if opts.unsupportedMode:
+ stdoutLog.error("Running anaconda in %s mode is no longer supported." % opts.unsupportedMode)
+ sys.exit(0)
+
# Now that we've got arguments, do some extra processing.
instClass = getInstClass()