From: Jason Stubbs Date: Thu, 29 Sep 2005 16:30:44 +0000 (-0000) Subject: Validation of user atoms. X-Git-Tag: v2.0.53_rc4_2111~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=87150299fd85e167a920931cc3c1d48f25c3b832;p=portage.git Validation of user atoms. svn path=/main/branches/2.0/; revision=2048 --- diff --git a/bin/emerge b/bin/emerge index 8f4edc755..f2d296ea7 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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: