diff options
author | Chris Lumens <clumens@redhat.com> | 2009-12-02 16:01:10 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-12-03 13:14:47 -0500 |
commit | e1cf0ff896a5ed12733a554af79c6ad45287d9b8 (patch) | |
tree | 1a0cea7cbd53969776c43ccfe077e0386350ab05 /anaconda | |
parent | f11637c8d8ec9370a14284966be2f97de385b466 (diff) | |
download | anaconda-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-x | anaconda | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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() |