archdir = "%s/%s" % (treedir, arch)
poldek_idx = "%s/RPMS/packages.ndir.md" % archdir
repodata_idx = "%s/RPMS/repodata/repomd.xml" % archdir
if freshen and os.path.exists(poldek_idx) and os.path.exists(repodata_idx) \
and not os.path.getmtime(comps_file) > os.path.getmtime(repodata_idx) \
and not os.path.getmtime(poldek_idx) > os.path.getmtime(repodata_idx):
archdir = "%s/%s" % (treedir, arch)
poldek_idx = "%s/RPMS/packages.ndir.md" % archdir
repodata_idx = "%s/RPMS/repodata/repomd.xml" % archdir
if freshen and os.path.exists(poldek_idx) and os.path.exists(repodata_idx) \
and not os.path.getmtime(comps_file) > os.path.getmtime(repodata_idx) \
and not os.path.getmtime(poldek_idx) > os.path.getmtime(repodata_idx):