Use clear_caches() to free memory inside action_depclean().
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Jun 2009 21:37:17 +0000 (21:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Jun 2009 21:37:17 +0000 (21:37 -0000)
svn path=/main/trunk/; revision=13700

pym/_emerge/actions.py

index 88c7dd4e9ceb2633bc00e3f386cd5e66e70d687f..19de2a3e16dd0ded8c2626a9dba6b6600f302527 100644 (file)
@@ -602,8 +602,7 @@ def action_depclean(settings, trees, ldpath_mtimes,
                calc_depclean(settings, trees, ldpath_mtimes,
                        myopts, action, args_set, spinner)
 
-       import gc
-       gc.collect()
+       clear_caches(trees)
 
        if rval != os.EX_OK:
                return rval