[yum-cvs] yum/yum yumRepo.py,1.33,1.34
Seth Vidal
skvidal at linux.duke.edu
Sun Feb 4 18:25:46 UTC 2007
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv23251
Modified Files:
yumRepo.py
Log Message:
make user execution from db-based-cache work
Index: yumRepo.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/yumRepo.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- yumRepo.py 4 Feb 2007 18:23:18 -0000 1.33
+++ yumRepo.py 4 Feb 2007 18:25:44 -0000 1.34
@@ -115,7 +115,8 @@
if db_fn:
db_un_fn = db_fn.replace('.bz2', '')
- misc.bunzipFile(db_fn, db_un_fn)
+ if not repo.cache:
+ misc.bunzipFile(db_fn, db_un_fn)
dobj = repo.cacheHandler.open_database(db_un_fn)
else:
@@ -135,10 +136,11 @@
pass
if db_fn:
- db_un_fn = db_fn.replace('.bz2', '')
- misc.bunzipFile(db_fn, db_un_fn)
+ db_un_fn = db_fn.replace('.bz2', '')
+ if not repo.cache:
+ misc.bunzipFile(db_fn, db_un_fn)
dobj = repo.cacheHandler.open_database(db_un_fn)
-
+
else:
xml = repo.getFileListsXML()
xmldata = repo.repoXML.getData('filelists')
@@ -158,9 +160,10 @@
if db_fn:
db_un_fn = db_fn.replace('.bz2', '')
- misc.bunzipFile(db_fn, db_un_fn)
+ if not repo.cache:
+ misc.bunzipFile(db_fn, db_un_fn)
dobj = repo.cacheHandler.open_database(db_un_fn)
-
+
else:
xml = repo.getOtherXML()
xmldata = repo.repoXML.getData('other')
More information about the Yum-cvs-commits
mailing list