[yum-commits] Branch 'yum-3_2_X' - yum/misc.py
Ville Skyttä
scop at osuosl.org
Sat Oct 17 16:12:18 UTC 2009
yum/misc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3855a21b78375cd20c03463b1799a87822a0c97b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Oct 17 12:55:35 2009 +0300
Don't trigger a full search for everything starting with a digit.
diff --git a/yum/misc.py b/yum/misc.py
index 16ffca0..de195c6 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -116,7 +116,7 @@ def re_full_search_needed(s):
global _re_compiled_full_match
if _re_compiled_full_match is None:
one = re.compile('.*[-\.\*\?\[\]].*.$') # Any wildcard or - seperator
- two = re.compile('^[0-9]') # Any epoch, for envra
+ two = re.compile('^[0-9]+:') # Any epoch, for envra
_re_compiled_full_match = (one, two)
for rec in _re_compiled_full_match:
if rec.match(s):
More information about the Yum-commits
mailing list