[yum-cvs] yum/yum __init__.py,1.341,1.342

Seth Vidal skvidal at linux.duke.edu
Mon Jul 16 15:46:07 UTC 2007


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

Modified Files:
	__init__.py 
Log Message:

if you are downloadHeader()ing make sure we make the headers dir - only
useful for other callers of the yum modules - and they all should be stopped
eventually.



Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.341
retrieving revision 1.342
diff -u -r1.341 -r1.342
--- __init__.py	4 Jul 2007 21:39:36 -0000	1.341
+++ __init__.py	16 Jul 2007 15:46:05 -0000	1.342
@@ -872,6 +872,8 @@
         if self.dsCallback: self.dsCallback.downloadHeader(po.name)
         
         try:
+            if not os.path.exists(repo.hdrdir):
+                os.makedirs(repo.hdrdir)
             checkfunc = (self.verifyHeader, (po, 1), {})
             hdrpath = repo.getHeader(po, checkfunc=checkfunc,
                     cache=repo.http_caching != 'none',




More information about the Yum-cvs-commits mailing list