[entropy.tools] isjustname: make it working with names like "389-ds-base"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user