X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcontents.py;h=36546f58d926c795112c3743c957a74b7feeb0c8;hb=f09b6c88380bd29be8455d3734d3fb68408905ff;hp=9e3e35d32253d87fabdbb7e1892603f6a678fce6;hpb=aeff0b009db845e9a924853846eff6fbb8e3f07b;p=dak.git diff --git a/dak/contents.py b/dak/contents.py index 9e3e35d3..36546f58 100644 --- a/dak/contents.py +++ b/dak/contents.py @@ -255,9 +255,9 @@ class Contents(object): pooldir = Config()[ 'Dir::Pool' ] cursor = DBConn().cursor(); - cursor.execute( debs_q ) - cursor.execute( olddeb_q ) - cursor.execute( arches_q ) + DBConn().prepare("debs_q",debs_q) + DBConn().prepare("olddeb_q",olddeb_q) + DBConn().prepare("arches_q",arches_q) suites = self._suites() for suite in [i.lower() for i in suites]: @@ -292,9 +292,9 @@ class Contents(object): """ cursor = DBConn().cursor(); - cursor.execute( arches_q ) - cursor.execute( contents_q ) - cursor.execute( udeb_contents_q ) + DBConn().prepare( "arches_q", arches_q ) + DBConn().prepare( "contents_q", contents_q ) + DBConn().prepare( "udeb_contents_q", udeb_contents_q ) debtype_id=DBConn().get_override_type_id("deb") udebtype_id=DBConn().get_override_type_id("udeb")