extras-buildsys/utils/pushscript MultiLib.py,1.25,1.26

Michael Schwendt mschwendt at fedoraproject.org
Sat Mar 21 09:39:01 UTC 2009


Author: mschwendt

Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9668

Modified Files:
	MultiLib.py 
Log Message:
Don't used named args here for Python 2.6 compatibility.



Index: MultiLib.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/MultiLib.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- MultiLib.py	16 Feb 2009 09:28:34 -0000	1.25
+++ MultiLib.py	21 Mar 2009 09:38:57 -0000	1.26
@@ -195,8 +195,8 @@
         for repo in self.repos.listEnabled():
             if cmp(yumver,'3.1.1')>0:  # > 3.1.1
                 self.repos.populateSack(which=[repo.id], mdtype='filelists')  # since 3.1.1
-            else:
-                self.repos.populateSack(which=[repo.id], with='filelists')
+            else:  # named 'with' arg is reserved keyword in Python 2.6
+                self.repos.populateSack([repo.id], 'filelists')
 
     def addNeededPkg(self,pkg):
         self.needed.setdefault(pkg.repoid,{})




More information about the fedora-extras-commits mailing list