From: Mike O'Connor Date: Sat, 9 Jan 2010 20:23:16 +0000 (-0500) Subject: return of bad index name X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3b9822f29469b9c5c960924a6e9511a9a8e6d9bf;p=dak.git return of bad index name Signed-off-by: Mike O'Connor --- diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py index 1859e505..fcefadac 100755 --- a/dak/dakdb/update28.py +++ b/dak/dakdb/update28.py @@ -32,6 +32,7 @@ import psycopg2 import time from daklib.dak_exceptions import DBUpdateError from daklib.config import Config +import string ################################################################################ @@ -149,6 +150,7 @@ def do_update(self): arch_list = arches(c, suite_id) for (arch_id,arch_str) in arch_list: + suitestr=string.replace(suite,'-','_'); 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"),