[entropy.db] add MySQL connector (barely tested !!!)

This commit is contained in:
Fabio Erculiani
2012-08-08 18:45:41 +02:00
parent a1e7d92bfb
commit ad74ade00c
4 changed files with 5266 additions and 9 deletions
+2 -2
View File
@@ -5247,12 +5247,12 @@ class EntropyRepository(EntropyRepositoryBase):
return 0
@staticmethod
def importRepository(dumpfile, dbfile):
def importRepository(dumpfile, db, data = None):
"""
Reimplemented from EntropyRepositoryBase.
@todo: remove /usr/bin/sqlite3 dependency
"""
dbfile = os.path.realpath(dbfile)
dbfile = os.path.realpath(db)
tmp_dbfile = dbfile + ".import_repository"
dumpfile = os.path.realpath(dumpfile)
if not entropy.tools.is_valid_path_string(dbfile):