[yum-cvs] yum cli.py,1.181,1.182

Seth Vidal skvidal at login.linux.duke.edu
Mon May 30 05:49:24 UTC 2005


Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv21596

Modified Files:
	cli.py 
Log Message:

make update, install, erase commands case sensitive rather than insensitive.
yum install G* should not catch all g* and G*, just G*



Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -r1.181 -r1.182
--- cli.py	29 May 2005 06:14:36 -0000	1.181
+++ cli.py	30 May 2005 05:49:22 -0000	1.182
@@ -833,7 +833,8 @@
                          # no matter what we don't go looking at repos
 
             arglist = [arg]
-            exactmatch, matched, unmatched = parsePackages(avail, arglist)
+            exactmatch, matched, unmatched = parsePackages(avail, arglist, 
+                                                               casematch=1)
             if len(unmatched) > 0: # if we get back anything in unmatched, check it for a virtual-provide
                 arg = unmatched[0] #only one in there
                 self.log(3, 'Checking for virtual provide or file-provide for %s' % arg)
@@ -986,7 +987,8 @@
                 updatesPo.extend(self.pkgSack.searchNevra(name=n, arch=a, epoch=e, 
                                  ver=v, rel=r))
                                  
-            exactmatch, matched, unmatched = yum.packages.parsePackages(updatesPo, userlist)
+            exactmatch, matched, unmatched = yum.packages.parsePackages(
+                                                updatesPo, userlist, casematch=1)
             for userarg in unmatched:
                 if not quiet:
                     self.errorlog(1, 'Could not find update match for %s' % userarg)
@@ -1025,7 +1027,8 @@
             installed.append(po)
         
         if len(userlist) > 0: # if it ain't well, that'd be real _bad_ :)
-            exactmatch, matched, unmatched = yum.packages.parsePackages(installed, userlist)
+            exactmatch, matched, unmatched = yum.packages.parsePackages(
+                                             installed, userlist, casematch=1)
             erases = yum.misc.unique(matched + exactmatch)
         
         for pkg in erases:




More information about the Yum-cvs-commits mailing list