fixing horkage when noauto is in use (nameerrors)
authorBrian Harring <ferringb@gentoo.org>
Mon, 3 Oct 2005 13:25:55 +0000 (13:25 -0000)
committerBrian Harring <ferringb@gentoo.org>
Mon, 3 Oct 2005 13:25:55 +0000 (13:25 -0000)
svn path=/main/branches/2.0/; revision=2079

bin/ebuild

index b3b063ae4408a3985a3848a9c807f52e5a185fc5..133c04262989b0fda429db7129cecbbb807e2d18 100755 (executable)
@@ -67,9 +67,14 @@ if len(pargs) > 1 and "noauto" not in portage.features:
                if len(pargs) != 2:
                        print "config must be called on it's own, not combined with any other phase"
                        sys.exit(1)
-       ebuild = pargs[0]
-       pargs = actionmap_targets + others
-       root = getroot()
+       pargs = [pargs[0]] + actionmap_targets + others
+else:
+       ebuild = pargs.pop(0)
+       try:                            pargs.remove("clean")
+       except ValueError:      cleanse_first = False
+       else:                           cleanse_first = True
+
+root = getroot()
        
 for x in pargs:
        try: