Entropy/EquoInterface:

- do not trash info cache when adding/removing packages cause we're fine with idpackages now

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1643 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-04-09 18:59:26 +00:00
parent 045bc12b2b
commit edcd402a71
2 changed files with 18 additions and 15 deletions
+5 -4
View File
@@ -395,7 +395,7 @@ class etpDatabase:
clientDbconn.setRepositoryUpdatesDigest(repository, stored_digest)
# clear client cache
clientDbconn.clearCache()
clientDbconn.clearCache(all = True)
# this functions will filter either data from /usr/portage/profiles/updates/*
# or repository database returning only the needed actions
@@ -459,7 +459,7 @@ class etpDatabase:
self.runTreeUpdatesSlotmoveAction(command[1:])
# discard cache
self.clearCache()
self.clearCache(all = True)
# -- move action:
@@ -1685,7 +1685,7 @@ class etpDatabase:
def fetchone2set(self, item):
return set(item)
def clearCache(self):
def clearCache(self, all = False):
self.live_cache.clear()
def do_clear(name):
dump_path = os.path.join(etpConst['dumpstoragedir'],name)
@@ -1695,7 +1695,8 @@ class etpDatabase:
item = os.path.join(dump_dir,item)
if os.path.isfile(item):
os.remove(item)
do_clear(etpCache['dbInfo']+"/"+self.dbname+"/")
if all:
do_clear(etpCache['dbInfo']+"/"+self.dbname+"/")
do_clear(etpCache['dbMatch']+"/"+self.dbname+"/")
do_clear(etpCache['dbSearch']+"/"+self.dbname+"/")