[entropy.tools] isjustname: make it working with names like "389-ds-base"

This commit is contained in:
Fabio Erculiani
2010-07-23 17:44:07 +02:00
parent aefb137326
commit 019906e050
+1 -1
View File
@@ -1437,7 +1437,7 @@ def isjustname(mypkg):
@rtype: int
@return: if the package string is not just the package name
"""
for chunk in mypkg.split('-'):
for chunk in mypkg.split('-')[-2:]:
if _ververify(chunk):
return False
return True