[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] limit the query in 'update-content-for-bin_a' to only look for deb,udeb



Signed-off-by: Mike O'Connor <stew@vireo.org>
---
 dak/dakdb/update30.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dak/dakdb/update30.py b/dak/dakdb/update30.py
index 2cba658..d002c69 100644
--- a/dak/dakdb/update30.py
+++ b/dak/dakdb/update30.py
@@ -58,13 +58,11 @@ def do_update(self):
             JOIN section s on s.id=o.section
             WHERE b.id=$1
             AND o.suite=$2
+            AND o.type in ('deb','udeb')
             \"\"\",
             ["int", "int"]),
             [TD["new"]["bin"], TD["new"]["suite"]])[0]
 
-       if content_data['type'] not in ['deb', 'udeb']:
-           return
-
        tablename="%s_contents" % content_data['type']
 
        plpy.execute(plpy.prepare(\"\"\"DELETE FROM %s
-- 
1.6.5


Reply to: