extras-buildsys/utils/pushscript Utils.py,1.16,1.17

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Mar 9 14:27:18 UTC 2007


Author: mschwendt

Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17296

Modified Files:
	Utils.py 
Log Message:
separate createrepo cachedir per dist


Index: Utils.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/Utils.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Utils.py	8 Mar 2007 12:02:18 -0000	1.16
+++ Utils.py	9 Mar 2007 14:27:15 -0000	1.17
@@ -136,7 +136,10 @@
         cmd += ' -g %s' % compsname
     if debuginfo and os.path.exists( os.path.join(repodir,'debug') ):
         cmd += " -x \'*debuginfo*\'"
-    cmd += ' -c %s' % cfg.cr_cachedir
+    cachedir = os.path.join(cfg.cr_cachedir,dist)
+    if not os.path.exists(cachedir):
+        os.makedirs(cachedir)
+    cmd += ' -c %s' % cachedir
     cmd += ' %s' % repodir
     if run(cmd):
         raise Exception




More information about the fedora-extras-commits mailing list