From 160df78096bad73425fa76dcc11df1be85df0df5 Mon Sep 17 00:00:00 2001
From: Mike O'Connor <stew@vireo.org>
Date: Sat, 9 Jan 2010 15:14:52 -0500
Subject: [PATCH] those are strings not ints

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

diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py
index bd91231c..917877d4 100755
--- a/dak/dakdb/update28.py
+++ b/dak/dakdb/update28.py
@@ -149,11 +149,11 @@ def do_update(self):
             arch_list = arches(c, suite_id)
 
             for (arch_id,arch_str) in arch_list:
-                c.execute( "CREATE INDEX ind_deb_contents_%s_%s ON deb_contents (arch,suite) WHERE (arch=2 OR arch=%d) AND suite=%d"%(arch_str,suite,arch_id,suite_id) )
+                c.execute( "CREATE INDEX ind_deb_contents_%s_%s ON deb_contents (arch,suite) WHERE (arch=2 OR arch=%s) AND suite=%s"%(arch_str,suite,arch_id,suite_id) )
 
             for section, sname in [("debian-installer","main"),
                                   ("non-free/debian-installer", "nonfree")]:
-                c.execute( "CREATE INDEX ind_udeb_contents_%s_%s ON udeb_contents (section,suite) WHERE section=%s AND suite=%d"%(sname,suite,section,suite_id) )
+                c.execute( "CREATE INDEX ind_udeb_contents_%s_%s ON udeb_contents (section,suite) WHERE section=%s AND suite=%s"%(sname,suite,section,suite_id) )
 
 
         c.execute( """CREATE OR REPLACE FUNCTION update_contents_for_bin_a() RETURNS trigger AS  $$
-- 
2.39.5