]> git.decadent.org.uk Git - dak.git/commitdiff
return of bad index name
authorMike O'Connor <stew@vireo.org>
Sat, 9 Jan 2010 20:23:16 +0000 (15:23 -0500)
committerMike O'Connor <stew@vireo.org>
Sat, 9 Jan 2010 20:23:16 +0000 (15:23 -0500)
Signed-off-by: Mike O'Connor <stew@vireo.org>
dak/dakdb/update28.py

index 1859e5056d3bc8a16b4b0fba84f4cc35a024948a..fcefadac4ca075119bb371d9ec73b9ce5c86b02d 100755 (executable)
@@ -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"),