From: Ansgar Burchardt Date: Sat, 11 Aug 2012 16:59:43 +0000 (+0200) Subject: dak/dakdb/update75.py: fix adding architectures for new and byhand X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=def19b9342c0db470b0454813d57bf2c2d6b5fb9;p=dak dak/dakdb/update75.py: fix adding architectures for new and byhand --- diff --git a/dak/dakdb/update75.py b/dak/dakdb/update75.py index fb736a55..e6684337 100644 --- a/dak/dakdb/update75.py +++ b/dak/dakdb/update75.py @@ -131,6 +131,7 @@ def _convert_policy_queues(cnf, c): FROM policy_queue pq JOIN suite ON pq.id = suite.policy_queue_id JOIN suite_architectures sa ON suite.id = sa.suite + WHERE pq.queue_name NOT IN ('byhand', 'new') GROUP BY pq.suite_id, sa.architecture""") # We only add architectures from suite_architectures to only add @@ -139,8 +140,7 @@ def _convert_policy_queues(cnf, c): # to generate Packages indices. c.execute("""INSERT INTO suite_architectures (suite, architecture) SELECT DISTINCT pq.suite_id, sa.architecture - FROM build_queue bq - JOIN suite_architectures sa + FROM policy_queue pq, suite_architectures sa WHERE pq.queue_name IN ('byhand', 'new')""") c.execute("""CREATE TABLE policy_queue_upload (