summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-31 20:40:51 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-31 20:40:51 +0000
commit8668b31fdc005d521ce991b1c7542dcc6f385452 (patch)
treef8f9e75304dad8c20084419c8489a9deef680b98
parent580eba6603b6b4a2d38fbe5388dabf25c805d60d (diff)
downloadportage-8668b31fdc005d521ce991b1c7542dcc6f385452.tar.gz
portage-8668b31fdc005d521ce991b1c7542dcc6f385452.tar.bz2
portage-8668b31fdc005d521ce991b1c7542dcc6f385452.zip
Eliminate duplicate code by calling equivalent dblink._clear_contents_cache().
svn path=/main/trunk/; revision=11767
-rw-r--r--pym/portage/dbapi/vartree.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 5c4de76af..e1da2084f 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -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