Eliminate duplicate code by calling equivalent dblink._clear_contents_cache().
authorZac Medico <zmedico@gentoo.org>
Fri, 31 Oct 2008 20:40:51 +0000 (20:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 31 Oct 2008 20:40:51 +0000 (20:40 -0000)
svn path=/main/trunk/; revision=11767

pym/portage/dbapi/vartree.py

index 5c4de76afb1e892f3ccf4f5da5ed69964fd46720..e1da2084f6ada96ffaa6e676449502ec87db3631 100644 (file)
@@ -3295,9 +3295,7 @@ class dblink(object):
                # just been merged.
                others_in_slot.append(self)  # self has just been merged
                for dblnk in others_in_slot:
-                       dblnk.contentscache = None
-                       dblnk._contents_inodes = None
-                       dblnk._contents_basenames = None
+                       dblnk._clear_contents_cache()
 
                # If portage is reinstalling itself, remove the old
                # version now since we want to use the temporary