print 'generate poldek index for %s' % arch
if config.poldek_indexes != "old":
os.system('%s -s %s%s/%s/RPMS/ --mkidxz --mkidx-type pndir' % (poldek, ftp_dir, tree, arch))
- if config.separate_debuginfo:
+ if arch != 'noarch' and config.separate_debuginfo:
os.system('%s -s %s%s/%s/debuginfo/ --mkidxz --mkidx-type pndir' % (poldek, ftp_dir, tree, arch))
if config.poldek_indexes != "new":
os.system('%s -s %s%s/%s/RPMS/ --mkidxz --mkidx-type pdir' % (poldek, ftp_dir, tree, arch))
- if config.separate_debuginfo:
+ if arch != 'noarch' and config.separate_debuginfo:
os.system('%s -s %s%s/%s/debuginfo/ --mkidxz --mkidx-type pdir' % (poldek, ftp_dir, tree, arch))
if do_yum:
print 'generate repodata for %s using createrepo' % arch
# Creating indexes for yum and other supporting xml repodata.
os.system('time %s --cache %s-%s %s%s/%s/RPMS' % (yum, cachedir, arch, ftp_dir, tree, arch))
- if config.separate_debuginfo:
+ if arch != 'noarch' and config.separate_debuginfo:
os.system('time %s --cache %s-%s %s%s/%s/debuginfo' % (yum, cachedir, arch, ftp_dir, tree, arch))
if do_rpmrepo: