From: Anthony Towns Date: Mon, 31 Jul 2006 05:46:46 +0000 (+1000) Subject: automatically process binary uploads to proposed-updates when source is already present X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ebeff5d0834583b5f3e2ce4cd7b5df6976ca1b41;p=dak.git automatically process binary uploads to proposed-updates when source is already present --- diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index cf603124..665528a7 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1188,9 +1188,20 @@ def queue_embargo (summary): ################################################################################ def is_stableupdate (): - if changes["distribution"].has_key("proposed-updates"): - return 1 - return 0 + if not changes["distribution"].has_key("proposed-updates"): + return 0 + + if not changes["architecture"].has_key("source"): + pusuite = database.get_suite_id("proposed-updates") + q = Upload.projectB.query( + "SELECT S.source FROM source s JOIN src_associations sa ON (s.id = sa.source) WHERE s.source = '%s' AND s.version = '%s' AND sa.suite = %d" % + (changes["source"], changes["version"], pusuite)) + ql = q.getresult() + if ql: + # source is already in proposed-updates + return 0 + + return 1 def do_stableupdate (summary): print "Moving to PROPOSED-UPDATES holding area."