do not index tables on live systems

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1292 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-02-25 13:40:53 +00:00
parent 26f58b7f77
commit 59dcbed3cc
+3
View File
@@ -134,6 +134,9 @@ class etpDatabase:
self.indexing = indexing
if etpConst['uid'] > 0: # forcing since we won't have write access to db
self.indexing = False
# live systems don't like wasting RAM
if entropyTools.islive():
self.indexing = False
self.dbFile = dbFile
self.updateProgress = OutputInterface.updateProgress
self.askQuestion = OutputInterface.askQuestion