From: Archive Administrator Date: Wed, 7 Feb 2007 20:03:28 +0000 (+0000) Subject: Merge with mainline. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c226cee81a6268cfdb03dd2ac42efaaae748bdbb;hp=5bc1925a3750cbafc82703c60c5106686c8c7af4;p=dak.git Merge with mainline. --- diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 3b85d605..688fd63c 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1198,9 +1198,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."