]> git.decadent.org.uk Git - dak.git/commitdiff
limit the query in 'update-content-for-bin_a' to only look for deb,udeb
authorMike O'Connor <stew@vireo.org>
Sat, 9 Jan 2010 23:55:03 +0000 (18:55 -0500)
committerMike O'Connor <stew@vireo.org>
Sat, 9 Jan 2010 23:55:03 +0000 (18:55 -0500)
Signed-off-by: Mike O'Connor <stew@vireo.org>
dak/dakdb/update30.py

index 2cba65897372fb174f2f75bedb166dd0bca07200..d002c690be4e93816f69689a17f268dcac5a8500 100644 (file)
@@ -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