[yum-cvs] yum cli.py,1.196,1.197

Seth Vidal skvidal at login.linux.duke.edu
Sat Dec 3 08:28:17 UTC 2005


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

Modified Files:
	cli.py 
Log Message:

change minor mechanism in cli.py for installs until I can spend some time
better integrating the new methods


Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -r1.196 -r1.197
--- cli.py	3 Dec 2005 07:15:10 -0000	1.196
+++ cli.py	3 Dec 2005 08:28:15 -0000	1.197
@@ -917,7 +917,7 @@
             self.log(3, 'reduced installs :')
         for po in pkglist:
             self.log(3,'   %s.%s %s:%s-%s' % po.pkgtup)
-            self.tsInfo.addInstall(po)
+            self.install(po)
 
         if len(passToUpdate) > 0:
             self.log(3, 'potential updates :')
@@ -1052,7 +1052,7 @@
                     erases.extend(depmatches)
             
         for pkg in erases:
-            self.tsInfo.addErase(pkg)
+            self.remove(po=pkg)
         
         if len(self.tsInfo) > oldcount:
             change = len(self.tsInfo) - oldcount
@@ -1128,7 +1128,7 @@
         for po in installpkgs:
             self.log(2, 'Marking %s to be installed' % po.localpath)
             self.localPackages.append(po)
-            self.tsInfo.addInstall(po)
+            self.install(po=po)
         
         for (po, oldpo) in updatepkgs:
             self.log(2, 'Marking %s as an update to %s' % (po.localpath, oldpo))




More information about the Yum-cvs-commits mailing list