Avoid bogus 'Deprecated use of action' warnings for valid commands such as `emerge...
authorZac Medico <zmedico@gentoo.org>
Fri, 8 Dec 2006 02:32:07 +0000 (02:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 8 Dec 2006 02:32:07 +0000 (02:32 -0000)
svn path=/main/trunk/; revision=5218

bin/emerge

index 7abf5271415478451166eba544b642b99248bc83..5dd4c2018dde4cdaa60159d3298064531b5dd638 100755 (executable)
@@ -4311,7 +4311,7 @@ def parse_opts(tmpcmdline, silent=False):
                        myaction = action_opt
 
        for x in myargs:
-               if x in actions:
+               if x in actions and myaction != "search":
                        if x not in ["system", "world"]:
                                print red("*** Deprecated use of action '%s', use '--%s' instead" % (x,x))
                        # special case "search" so people can search for action terms, e.g. emerge -s sync