pld-ftp-admin: bin/pfa-genindex - add local path variables for less formatting
glen
glen at pld-linux.org
Sat May 18 13:10:11 CEST 2013
Author: glen Date: Sat May 18 11:10:11 2013 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- add local path variables for less formatting
---- Files affected:
pld-ftp-admin/bin:
pfa-genindex (1.35 -> 1.36)
---- Diffs:
================================================================
Index: pld-ftp-admin/bin/pfa-genindex
diff -u pld-ftp-admin/bin/pfa-genindex:1.35 pld-ftp-admin/bin/pfa-genindex:1.36
--- pld-ftp-admin/bin/pfa-genindex:1.35 Sun Nov 11 11:23:55 2012
+++ pld-ftp-admin/bin/pfa-genindex Sat May 18 13:10:06 2013
@@ -99,16 +99,18 @@
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"))
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pld-ftp-admin/bin/pfa-genindex?r1=1.35&r2=1.36
More information about the pld-cvs-commit
mailing list