From 3b9822f29469b9c5c960924a6e9511a9a8e6d9bf Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Sat, 9 Jan 2010 15:23:16 -0500 Subject: [PATCH] return of bad index name Signed-off-by: Mike O'Connor --- dak/dakdb/update28.py | 2 ++ 1 file changed, 2 insertions(+) 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"), -- 2.39.5