[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 09/10] return of bad index name



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

diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py
index 1859e50..fcefada 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"),
-- 
1.6.5



Reply to: