summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-12 18:10:03 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-12 18:10:03 +0000
commit7879445e8a1a907d64faa68103c108f44a8630d3 (patch)
tree3f78a1d9c12feb21dcf97bd2e009e68a34453d1c /bin
parentb19e9790de7e83329b6236b71f95a3f4f034c603 (diff)
downloadportage-7879445e8a1a907d64faa68103c108f44a8630d3.tar.gz
portage-7879445e8a1a907d64faa68103c108f44a8630d3.tar.bz2
portage-7879445e8a1a907d64faa68103c108f44a8630d3.zip
Use isjustname() where appropriate.
svn path=/main/trunk/; revision=14236
Diffstat (limited to 'bin')
-rwxr-xr-xbin/egencache3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/egencache b/bin/egencache
index db0eb622d..2b3af4e50 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -34,6 +34,7 @@ from _emerge.MetadataRegen import MetadataRegen
from portage.cache.cache_errors import CacheError, StatCollision
from portage.util import writemsg_level
from portage import cpv_getkey
+from portage.dep import isjustname
def parse_args(args):
usage = "egencache [options] --update [atom] ..."
@@ -112,7 +113,7 @@ def parse_args(args):
except portage.exception.InvalidAtom:
parser.error('Invalid atom: %s' % (atom,))
- if str(atom) != atom.cp:
+ if not isjustname(atom):
parser.error('Atom is too specific: %s' % (atom,))
return parser, options, args