summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/clear_caches.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/clear_caches.py b/pym/_emerge/clear_caches.py
index 83ab77eb4..a6b004f5d 100644
--- a/pym/_emerge/clear_caches.py
+++ b/pym/_emerge/clear_caches.py
@@ -4,6 +4,7 @@
import gc
import portage
+from portage.util.listdir import dircache
def clear_caches(trees):
for d in trees.values():
@@ -12,5 +13,5 @@ def clear_caches(trees):
d["bintree"].dbapi._aux_cache.clear()
d["bintree"].dbapi._clear_cache()
d["vartree"].dbapi.linkmap._clear_cache()
- portage.dircache.clear()
+ dircache.clear()
gc.collect()