[yum-cvs] yum/yum yumRepo.py,1.37,1.38

Seth Vidal skvidal at linux.duke.edu
Tue Feb 27 19:18:15 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv6193

Modified Files:
	yumRepo.py 
Log Message:

make sure xml-based repos work, too. 


Index: yumRepo.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/yumRepo.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- yumRepo.py	27 Feb 2007 05:27:08 -0000	1.37
+++ yumRepo.py	27 Feb 2007 19:18:13 -0000	1.38
@@ -147,15 +147,15 @@
                                 misc.bunzipFile(db_fn, db_un_fn)
                     dobj = repo.cacheHandler.open_database(db_un_fn)
 
-                else:
-                    xml = repo_get_function()
-                    xmldata = repo.repoXML.getData(mymdtype)
-                    (ctype, csum) = xmldata.checksum
-                    dobj = repo_cache_function(xml, csum)
-
-                if not cacheonly:
-                    self.addDict(repo, item, dobj, callback)
-                del dobj
+            else:
+                xml = repo_get_function()
+                xmldata = repo.repoXML.getData(mymdtype)
+                (ctype, csum) = xmldata.checksum
+                dobj = repo_cache_function(xml, csum)
+
+            if not cacheonly:
+                self.addDict(repo, item, dobj, callback)
+            del dobj
 
 
         # get rid of all this stuff we don't need now




More information about the Yum-cvs-commits mailing list