X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_new.py;h=e052af49a1909ee1d7f249251dffab4afa9d3be2;hb=67b6abb95803ccd67d999f5f0174310776927534;hp=1ab3da45915de5240a956c971e66a65c57c3ea07;hpb=4d3066e67fba1a377c78dd3a2fdfa196076720a0;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index 1ab3da45..e052af49 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -83,7 +83,7 @@ def recheck(upload, session): if Options["No-Action"] or Options["Automatic"] or Options["Trainee"]: answer = 'S' - print "REJECT\n" + upload.rejects.join("\n"), + print "REJECT\n%s" % '\n'.join(upload.rejects) prompt = "[R]eject, Skip, Quit ?" while prompt.find(answer) == -1: @@ -94,7 +94,7 @@ def recheck(upload, session): answer = answer[:1].upper() if answer == 'R': - upload.do_reject(manual=0, reject_message=upload.rejects.join("\n")) + upload.do_reject(manual=0, reject_message='\n'.join(upload.rejects)) os.unlink(upload.pkg.changes_file[:-8]+".dak") return 0 elif answer == 'S': @@ -674,6 +674,7 @@ def do_new(upload, session): 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)) @@ -820,7 +821,7 @@ def _accept(upload): if Options["No-Action"]: return (summary, short_summary) = upload.build_summaries() - upload.accept(summary, short_summary, targetdir=Config()["Dir::Queue::Newstage"]) + upload.accept(summary, short_summary, targetqueue) os.unlink(upload.pkg.changes_file[:-8]+".dak") def do_accept(upload): @@ -831,7 +832,7 @@ def do_accept(upload): if cnf.FindB("Dinstall::SecurityQueueHandling"): upload.dump_vars(cnf["Dir::Queue::Embargoed"]) - upload.move_to_dir(cnf["Dir::Queue::Embargoed"]) + upload.move_to_queue(get_policy_queue('embargoed')) upload.queue_build("embargoed", cnf["Dir::Queue::Embargoed"]) # Check for override disparities upload.Subst["__SUMMARY__"] = summary @@ -897,6 +898,10 @@ def end(): def main(): global Options, Logger, Sections, Priorities + print "NO NEW PROCESSING CURRENTLY AVAILABLE" + print "(Go and do something more interesting)" + sys.exit(0) + cnf = Config() session = DBConn().session()