Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Complain if we're started in test or rootPath mode instead of aborting. (http://www.linux-archive.org/ubuntu-user/289632-complain-if-were-started-test-rootpath-mode-instead-aborting.html)

Chris Lumens 12-02-2009 08:30 PM

Complain if we're started in test or rootPath mode instead of aborting.
 
---
anaconda | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index cc8f7ec..ed72947 100755
--- a/anaconda
+++ b/anaconda
@@ -232,6 +232,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():
@@ -636,6 +642,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()

--
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 02:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.