count += 1
print "Directory %s, file %7d, failures %3d. (%s)" % (dirpath[-10:], count, failure, changesfile)
changes = Changes()
+ changes.changes_file = changesfile
changesfile = os.path.join(dirpath, changesfile)
changes.changes = parse_changes(changesfile, signing_rules=-1)
changes.changes["fingerprint"], = check_signature(changesfile)
elif answer == 'E' and not Options["Trainee"]:
new = edit_overrides (new, upload, session)
elif answer == 'M' and not Options["Trainee"]:
+ upload.pkg.remove_known_changes()
aborted = upload.do_reject(manual=1,
reject_message=Options["Manual-Reject"],
note=get_new_comments(changes.get("source", ""), session=session))
Logger.log(["BYHAND REJECT: %s" % (upload.pkg.changes_file)])
upload.do_reject(manual=1, reject_message=Options["Manual-Reject"])
os.unlink(upload.pkg.changes_file[:-8]+".dak")
- upload.pkg.remove_known_changes()
done = 1
elif answer == 'S':
done = 1
session = DBConn().session()
privatetrans = True
- session.query(KnownChange).filter(changesfile=self.changes_file).delete()
+ session.delete(get_knownchange(self.changes_file, session))
if privatetrans:
session.commit()
session.close()
+
def add_known_changes(self, queue, session=None):
cnf = Config()