From 7edbce99b390832d78fd9fe029934de4f2fac80b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 2 May 2010 17:32:20 +0200 Subject: [PATCH] [entropy.db] EntropyRepository._insertProvidedMime(): create provided_mime table if it doesn't exist --- libraries/entropy/db/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/entropy/db/__init__.py b/libraries/entropy/db/__init__.py index 4c9c4c723..d1fc97be0 100644 --- a/libraries/entropy/db/__init__.py +++ b/libraries/entropy/db/__init__.py @@ -2331,6 +2331,9 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface): @param mimetypes: list of mimetypes supported by package @type mimetypes: list """ + # FIXME: remove this before 2010-12-31 + if not self._doesTableExist("provided_mime"): + self._createProvidedMimeTable() self._cursor().executemany(""" INSERT INTO provided_mime VALUES (?,?)""", [(x, idpackage) for x in mimetypes])