summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-09-29 16:30:44 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-09-29 16:30:44 +0000
commit87150299fd85e167a920931cc3c1d48f25c3b832 (patch)
tree7f6661e4d682a0845c2c1a120b66a747c963bf0c
parent608be5d3b7e74800d11cfa0d66b6fc3fe6370ee6 (diff)
downloadportage-87150299fd85e167a920931cc3c1d48f25c3b832.tar.gz
portage-87150299fd85e167a920931cc3c1d48f25c3b832.tar.bz2
portage-87150299fd85e167a920931cc3c1d48f25c3b832.zip
Validation of user atoms.
svn path=/main/branches/2.0/; revision=2048
-rwxr-xr-xbin/emerge4
1 files changed, 4 insertions, 0 deletions
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: