[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py
skvidal at osuosl.org
skvidal at osuosl.org
Tue Mar 3 15:30:29 UTC 2009
yum/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit fc3cba144e0b0d441c8289c949834ead0aab20d5
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Tue Mar 3 10:28:59 2009 -0500
make sure the 'check for versioned dep' regex is accurate in the face of
prco names with ='s in them.
diff --git a/yum/__init__.py b/yum/__init__.py
index 58567cf..5f257ef 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2222,7 +2222,7 @@ class YumBase(depsolve.Depsolve):
if depstring[0] != '/':
# not a file dep - look at it for being versioned
- if re.search('[>=<]', depstring): # versioned
+ if re.search('\s+[(>=)(<=)<=>]', depstring): # versioned
try:
depname, flagsymbol, depver = depstring.split()
except ValueError, e:
@@ -2265,7 +2265,7 @@ class YumBase(depsolve.Depsolve):
if depstring[0] != '/':
# not a file dep - look at it for being versioned
- if re.search('[>=<]', depstring): # versioned
+ if re.search('\s+[(>=)(<=)<=>]', depstring): # versioned
try:
depname, flagsymbol, depver = depstring.split()
except ValueError:
More information about the Yum-commits
mailing list