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)