Validation of user atoms.
authorJason Stubbs <jstubbs@gentoo.org>
Thu, 29 Sep 2005 16:30:44 +0000 (16:30 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Thu, 29 Sep 2005 16:30:44 +0000 (16:30 -0000)
svn path=/main/branches/2.0/; revision=2048

bin/emerge

index 8f4edc75545c697d89e078681a38127599f5741e..f2d296ea7898b248324de8af65ebcb17f848465e 100755 (executable)
@@ -1072,6 +1072,10 @@ class depgraph:
                                elif not "--oneshot" in myopts:
                                        myfavorites.append(mykey)
                        else:
+                               if not portage.isvalidatom(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 '='?)"
                                try:
                                        mykey=portage.dep_expand(x,mydb=portage.portdb)
                                except ValueError, errpkgs: