]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- add local path variables for less formatting
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 18 May 2013 11:10:06 +0000 (11:10 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 18 May 2013 11:10:06 +0000 (11:10 +0000)
Changed files:
    bin/pfa-genindex -> 1.36

bin/pfa-genindex

index d976f8205e91b8a95dac17eaa005e7ccd45a05f1..61e666fffff727c30dcd9eda9ef174d475a675b9 100644 (file)
@@ -99,16 +99,18 @@ if do_poldek:
 
 if do_yum:
     os.system('%s cd %s.stat/repodata && cvs %s up comps.xml' % ("" if quiet else "set -x;", ftp_dir, "" if quiet else "-Q"))
-    yum = '%s.stat/bin/createrepo -d -g %s.stat/repodata/comps.xml' % (ftp_dir, ftp_dir)
+    yum = '%s.stat/bin/createrepo -d -v --skip-stat --workers=12 -g %s.stat/repodata/comps.xml' % (ftp_dir, ftp_dir)
     for tree in trees:
         print '\n-------------------------- %s --------------------------' % tree
         cachedir = '%s/tmp/createrepo/%s' % (home, tree)
+        treedir = "%s%s" % (ftp_dir, tree)
         for arch in all_ftp_archs:
             print '\ngenerate repodata for %s using createrepo' % arch
-            # Creating indexes for yum and other supporting xml repodata.
-            os.system('%s %s --cache %s-%s %s%s/%s/RPMS' % ("" if quiet else "time", yum, cachedir, arch, ftp_dir, tree, arch))
+            archdir = "%s/%s" % (treedir, arch)
+            print ('%s %s --cache %s-%s %s/RPMS' % ("" if quiet else "time", yum, cachedir, arch, archdir))
+            os.system('%s %s --cache %s-%s %s/RPMS' % ("" if quiet else "time", yum, cachedir, arch, archdir))
             if arch != 'noarch' and config.separate_debuginfo:
-                os.system('%s %s --cache %s-%s %s%s/%s/debuginfo' % ("" if quiet else "time", yum, cachedir, arch, ftp_dir, tree, arch))
+                os.system('%s %s --cache %s-%s %s/debuginfo' % ("" if quiet else "time", yum, cachedir, arch, archdir))
 
 if do_rpmrepo:
     os.system('%s cd %s.stat/repodata && cvs %s up comps.xml' % ("" if quiet else "set -x;", ftp_dir, "" if quiet else "-Q"))
This page took 0.089754 seconds and 4 git commands to generate.