Check if invalid atoms are only missing a category and let those pass.
authorJason Stubbs <jstubbs@gentoo.org>
Sat, 1 Oct 2005 10:41:52 +0000 (10:41 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Sat, 1 Oct 2005 10:41:52 +0000 (10:41 -0000)
svn path=/main/branches/2.0/; revision=2066

bin/emerge

index 7b926edaa40003ff27cad16af469ffd01b0dabae..5341fbcbf5be82da1920884c6a44855ffdbc492c 100755 (executable)
@@ -1083,7 +1083,7 @@ class depgraph:
                                elif not "--oneshot" in myopts:
                                        myfavorites.append(mykey)
                        else:
-                               if not portage.isvalidatom(x):
+                               if not portage.isvalidatom(x) and not portage.isvalidatom("cat/"+x):
                                        print ("\n\n!!! '%s' is not a valid package atom." % x)
                                        print "!!! Please check ebuild(5) for full details."
                                        print "!!! (Did you specify a version but forget to prefix with '='?)"