Use the the optparse options for --ignore-default-opts since that allows option abrev...
authorZac Medico <zmedico@gentoo.org>
Wed, 20 Jun 2007 23:43:29 +0000 (23:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 20 Jun 2007 23:43:29 +0000 (23:43 -0000)
svn path=/main/trunk/; revision=6890

pym/emerge/__init__.py

index 32b39d550a379e86cf839d7235a05ad2466cfef4..4dd0f395d59ffcea4d1af9e6a75aa50a8454ce78 100644 (file)
@@ -5461,7 +5461,7 @@ def emerge_main():
        xterm_titles = "notitles" not in settings.features
 
        tmpcmdline = []
-       if "--ignore-default-opts" not in sys.argv:
+       if "--ignore-default-opts" not in myopts:
                tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split())
        tmpcmdline.extend(sys.argv[1:])
        myaction, myopts, myfiles = parse_opts(tmpcmdline)