Fix --ignore-default-opts for bug #153980.
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Nov 2006 02:32:38 +0000 (02:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Nov 2006 02:32:38 +0000 (02:32 -0000)
svn path=/main/trunk/; revision=4926

bin/emerge

index 620b456235cf94eda2c2af4fd1d23ef36fd3d05d..932ad65b1ee0805b039c7c7d0280acba9564f21e 100755 (executable)
@@ -4274,7 +4274,7 @@ def emerge_main():
                nocolor()
 
        tmpcmdline = []
-       if "--ignore-default-opts" not in tmpcmdline:
+       if "--ignore-default-opts" not in sys.argv:
                tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split())
        tmpcmdline.extend(sys.argv[1:])
        myaction, myopts, myfiles = parse_opts(tmpcmdline)