[yum-cvs] yum/yum transactioninfo.py,1.17,1.18

Jeremy Katz katzj at login.linux.duke.edu
Fri Sep 16 22:03:37 UTC 2005


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

Modified Files:
	transactioninfo.py 
Log Message:
need to be able to remove a package from the transaction for package 
exclusion in kickstart


Index: transactioninfo.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/transactioninfo.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- transactioninfo.py	28 Mar 2005 14:38:36 -0000	1.17
+++ transactioninfo.py	16 Sep 2005 22:03:35 -0000	1.18
@@ -124,6 +124,10 @@
 
     def remove(self, pkgtup):
         """remove a package from the transaction"""
+        if not self.pkgdict.has_key(pkgtup):
+            self.debugprint("Package: %s not in ts" (pkgtup))
+            return
+        del self.pkgdict[pkgtup]
     
     def exists(self, pkgtup):
         """tells if the pkg is in the class"""




More information about the Yum-cvs-commits mailing list