From 9488f70dbb9b66bfc55c08f87efb603584a1365c Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 24 Oct 2008 10:05:57 +0000 Subject: [PATCH] EquoInterface/get_meant_package(): - ignore strings too long git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2561 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index dba461ee5..736cf4587 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -1442,7 +1442,10 @@ class EquoInterface(TextInterface): if x.isalpha(): x = "(%s{1,})?" % (x,) match_string += x - match_exp = re.compile(match_string,re.IGNORECASE) + try: + match_exp = re.compile(match_string,re.IGNORECASE) + except AssertionError: # too many groups + return set() matched = {} valid_repos = self.validRepositories