From: Mike O'Connor Date: Sat, 9 Jan 2010 23:55:03 +0000 (-0500) Subject: limit the query in 'update-content-for-bin_a' to only look for deb,udeb X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b68923aa806fb243fbea563b84c776482100bc;p=dak limit the query in 'update-content-for-bin_a' to only look for deb,udeb Signed-off-by: Mike O'Connor --- diff --git a/dak/dakdb/update30.py b/dak/dakdb/update30.py index 2cba6589..d002c690 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