diff options
Diffstat (limited to 'pym/portage/dep.py')
-rw-r--r-- | pym/portage/dep.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 865db16a7..f2c11b239 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -934,7 +934,16 @@ def isjustname(mypkg): 1) False if the package string is not just the package name 2) True if it is """ - return str(mypkg) == str(Atom(mypkg).cp) + try: + return mypkg == Atom(mypkg).cp + except InvalidAtom: + pass + + myparts = mypkg.split('-') + for x in myparts: + if ververify(x): + return False + return True iscache = {} |