[yum-cvs] yum/yum __init__.py,1.121,1.122
Seth Vidal
skvidal at login.linux.duke.edu
Tue Jun 14 22:40:01 UTC 2005
Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv10013/yum
Modified Files:
__init__.py
Log Message:
- minor change to use constants
- mark as 2.3.3
Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -r1.121 -r1.122
--- __init__.py 14 Jun 2005 15:21:47 -0000 1.121
+++ __init__.py 14 Jun 2005 22:39:58 -0000 1.122
@@ -43,8 +43,10 @@
from packages import parsePackages, YumLocalPackage, YumInstalledPackage, bestPackage
from repomd import mdErrors
+from constants import *
-__version__ = '2.3.2'
+
+__version__ = '2.3.3'
class YumBase(depsolve.Depsolve):
"""This is a primary structure and base class. It houses the objects and
@@ -1263,7 +1265,6 @@
"""Pass in a generic [build]require string and this function will
pass back the best(or first) package it finds providing that dep."""
- flags = {'>':'GT', '<':'LT', '=': 'EQ', '==': 'EQ', '>=':'GE', '<=':'LE'}
self.doRepoSetup()
# parse the string out
# either it is 'dep (some operator) e:v-r'
@@ -1280,9 +1281,9 @@
depname, flagsymbol, depver = depstring.split()
except ValueError, e:
raise Errors.YumBaseError, 'No Packages found for %s - have you tried quoting the string?' % depstring
- if not flags.has_key(flagsymbol):
+ if not SYMBOLFLAGS.has_key(flagsymbol):
raise Errors.YumBaseError, 'No Packages found for %s' % depstring
- depflags = flags[flagsymbol]
+ depflags = SYMBOLFLAGS[flagsymbol]
sack = self.whatProvides(depname, depflags, depver)
if len(sack) < 1:
More information about the Yum-cvs-commits
mailing list