projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb78871
)
Add backward compatibility to isjustname(), so the tests don't fail.
author
Zac Medico
<zmedico@gentoo.org>
Sat, 12 Sep 2009 23:18:56 +0000
(23:18 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 12 Sep 2009 23:18:56 +0000
(23:18 -0000)
svn path=/main/trunk/; revision=14239
pym/portage/dep.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep.py
b/pym/portage/dep.py
index 865db16a7d6b0ef2e6464ab527ed7801b85d08ff..f2c11b23937b27e0defa64b99076bc40e5c13cca 100644
(file)
--- 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 = {}