X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_new.py;h=0b9ff9231d72c397115292944efe94c7fe529f91;hb=5833d1eb6cd1a27cc28cc3e5bdea677bed3915bc;hp=f79c87ee8f4e91ef42387597af6b15e036a3b4c1;hpb=ba53a429f6807bf72356ae9d2616c776a8667f3b;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index f79c87ee..0b9ff923 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -94,9 +94,9 @@ def recheck(): # Version and file overwrite checks if files[f]["type"] == "deb": - reject(Upload.check_binary_against_db(f)) + reject(Upload.check_binary_against_db(f), "") elif files[f]["type"] == "dsc": - reject(Upload.check_source_against_db(f)) + reject(Upload.check_source_against_db(f), "") (reject_msg, is_in_incoming) = Upload.check_dsc_against_db(f) reject(reject_msg, "") @@ -822,7 +822,7 @@ def is_source_in_queue_dir(qdir): u = queue.Upload(Cnf) u.pkg.changes_file = os.path.join(qdir, entry) u.update_vars() - if not Upload.pkg.changes["architecture"].has_key("source"): + if not u.pkg.changes["architecture"].has_key("source"): # another binary upload, ignore continue if Upload.pkg.changes["version"] != u.pkg.changes["version"]: @@ -844,11 +844,11 @@ def move_to_holding(suite, queue_dir): def _accept(): if Options["No-Action"]: return + (summary, short_summary) = Upload.build_summaries() Upload.accept(summary, short_summary) os.unlink(Upload.pkg.changes_file[:-8]+".dak") def do_accept_stableupdate(suite, q): - (summary, short_summary) = Upload.build_summaries() queue_dir = Cnf["Dir::Queue::%s" % (q,)] if not Upload.pkg.changes["architecture"].has_key("source"): # It is not a sourceful upload. So its source may be either in p-u