pkg = BasePkg(uploadinfo[:-19], content = content)
srpm = pkg.files['SRPMS'][0]
+ if not os.path.exists(incoming_dir + 'SRPMS/' + srpm):
+ ftpio.log("%s file missing; skipping move until next round" % (srpm))
+ continue
+
if ftptree.has_key(`pkg`):
ftpio.log("%s already present in %s; removing newer files" % (srpm, ftptree))
rm(incoming_dir + 'SRPMS/' + srpm)
if not ftptree.has_key(`srcpkg`):
continue # We require the src.rpm to be present
+ rpmfile_missing = [f for f in srcpkg.files['ARCH'] if not os.path.exists(incoming_dir + arch + '/'+f)]
+ if len(rpmfile_missing):
+ for filem in rpmfile_missing:
+ ftpio.log("%s file missing; skipping move until next round" % (filem))
+ continue
+
dstpkg = BasePkg(`srcpkg`, ftptree)
if dstpkg.files.has_key(arch):