diff --git a/libraries/entropy/db/__init__.py b/libraries/entropy/db/__init__.py index 5d16daac8..93ab7810a 100644 --- a/libraries/entropy/db/__init__.py +++ b/libraries/entropy/db/__init__.py @@ -33,7 +33,7 @@ import hashlib from entropy.const import etpConst, const_setup_file, \ const_isunicode, const_convert_to_unicode, const_get_buffer, \ const_convert_to_rawstring, const_cmp -from entropy.exceptions import IncorrectParameter, InvalidAtom, \ +from entropy.exceptions import InvalidAtom, \ SystemDatabaseError, OperationNotPermitted, RepositoryPluginError, SPMError from entropy.i18n import _ from entropy.output import brown, bold, red, blue, purple, darkred, darkgreen, \ @@ -421,18 +421,18 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface): if self.dbname == etpConst['clientdbid']: self.db_branch = None - if dbFile is None: - raise IncorrectParameter("IncorrectParameter: %s" % ( - _("valid database path needed"),) ) + self.dbFile = dbFile + self.xcache = xcache + if self.dbFile is None: + raise AttributeError("valid database path needed") self.__write_mutex = self.threading.RLock() self.dbapi2 = dbapi2 # setup service interface self.readOnly = readOnly - self.xcache = xcache + self.indexing = indexing self.skipChecks = skipChecks - self.dbFile = dbFile self.live_cache = {} # create connection @@ -476,6 +476,25 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface): if structure_update: self._databaseStructureUpdates() + def __show_info(self): + first_part = "