From 019906e05062b8a040f7ccb9011fb41846b848e6 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 23 Jul 2010 17:44:07 +0200 Subject: [PATCH] [entropy.tools] isjustname: make it working with names like "389-ds-base" --- libraries/entropy/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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