- command = CommandFile(fn, log)
- if command.evaluate():
- log.log(['moving to done', basename])
- dst = find_next_free(os.path.join(donedir, basename))
- else:
- log.log(['moving to reject', basename])
+ try:
+ command = CommandFile(fn, log)
+ command.evaluate()
+ except:
+ created = os.stat(fn).st_mtime
+ now = time.time()
+ too_new = (now - created < int(cnf.get('Dinstall::SkipTime', '60')))
+ if too_new:
+ log.log(['skipped (too new)'])
+ continue
+ log.log(['reject', basename])