From ebeff5d0834583b5f3e2ce4cd7b5df6976ca1b41 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Mon, 31 Jul 2006 15:46:46 +1000 Subject: [PATCH] automatically process binary uploads to proposed-updates when source is already present --- dak/process_unchecked.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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." -- 2.39.5