ftpio.log("%s file missing; skipping move until next round" % (srpm))
continue
- if ftptree.has_key(`pkg`):
+ if ftptree.has_key(repr(pkg)):
ftpio.log("%s already present in %s; removing older files" % (srpm, ftptree))
rm(default_to + 'SRPMS/RPMS/' + srpm)
f = open(default_to + 'SRPMS/.metadata/' + srpm+'.info', 'a')
srcpkg = BasePkg(uploadinfo[:-19], content = content)
srpm = srcpkg.files['SRPMS'][0]
- if not ftptree.has_key(`srcpkg`):
+ if not ftptree.has_key(repr(srcpkg)):
continue # We require the src.rpm to be present
renvr = re.compile(r'(.*)-(.*)-(.*)\.[^.]*\.rpm')