pld-ftp-admin: scripts/gen-indexes.py YUM create repo is SLOW AS H...
arekm
arekm at pld-linux.org
Sun Jun 17 19:05:15 CEST 2007
Author: arekm Date: Sun Jun 17 17:05:15 2007 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
YUM create repo is SLOW AS HELL so now it's run after all poldek indexes creation
---- Files affected:
pld-ftp-admin/scripts:
gen-indexes.py (1.12 -> 1.13)
---- Diffs:
================================================================
Index: pld-ftp-admin/scripts/gen-indexes.py
diff -u pld-ftp-admin/scripts/gen-indexes.py:1.12 pld-ftp-admin/scripts/gen-indexes.py:1.13
--- pld-ftp-admin/scripts/gen-indexes.py:1.12 Wed May 30 08:40:15 2007
+++ pld-ftp-admin/scripts/gen-indexes.py Sun Jun 17 19:05:10 2007
@@ -49,9 +49,13 @@
if config.poldek_indexes != "new":
os.system('%s.stat/bin/poldek-new --cachedir=%s/tmp/poldek --conf %s.stat/etc/poldek.conf -s %s%s/%s/RPMS/ --mkidxz --mkidx-type pdir' %
(ftp_dir,home,ftp_dir,ftp_dir,tree,arch))
- # Creating indexes for yum and other supporting xml repodata.
- os.system('%s.stat/bin/createrepo --cache %s/tmp/createrepo %s%s/%s/RPMS' %
- (ftp_dir,home,ftp_dir,tree,arch))
+for tree in trees:
+ print '-------------------------- %s --------------------------' % tree
+ for arch in all_ftp_archs:
+ print 'ARCHITECTURE: %s' % arch
+ # Creating indexes for yum and other supporting xml repodata.
+ os.system('%s.stat/bin/createrepo --cache %s/tmp/createrepo %s%s/%s/RPMS' %
+ (ftp_dir,home,ftp_dir,tree,arch))
for tree in trees:
ftpio.unlock(tree)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pld-ftp-admin/scripts/gen-indexes.py?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list