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.
+ # -c cache directory; speeds up generation with files once cached
+ # -p; output human readable (indended) xml files; they get gziped after, so no harm done
+ os.system('%s.stat/bin/createrepo -c %s/tmp/createrepo -p %s%s/%s/RPMS' %
+ (ftp_dir,home,ftp_dir,tree,arch))
for tree in trees:
ftpio.unlock(tree)