diff --git a/libraries/entropy/tools.py b/libraries/entropy/tools.py index 3c5a3b4c8..5b70eb6cf 100644 --- a/libraries/entropy/tools.py +++ b/libraries/entropy/tools.py @@ -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