From 87150299fd85e167a920931cc3c1d48f25c3b832 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Thu, 29 Sep 2005 16:30:44 +0000 Subject: [PATCH] Validation of user atoms. svn path=/main/branches/2.0/; revision=2048 --- bin/emerge | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.26.2