[entropy.db] add MySQL connector (barely tested !!!)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user