[entropy.db] uniform _createCompileFlagsIndex to others (catch OperationalError)

This commit is contained in:
Fabio Erculiani
2012-07-26 22:05:05 +02:00
parent 1de32aba7d
commit 6b95cecfdb

View File

@@ -5752,10 +5752,13 @@ class EntropyRepository(EntropyRepositoryBase):
pass
def _createCompileFlagsIndex(self):
self._cursor().execute("""
CREATE INDEX IF NOT EXISTS flagsindex ON flags
( chost, cflags, cxxflags )
""")
try:
self._cursor().execute("""
CREATE INDEX IF NOT EXISTS flagsindex ON flags
( chost, cflags, cxxflags )
""")
except OperationalError:
pass
def _createDesktopMimeIndex(self):
try: