summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-05 01:46:52 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-05 01:46:52 +0000
commit2338df45f605f74d8300baf99f806cc738578fb2 (patch)
treedc795a83ee320f3dd16c466be22c89571b908f97
parent9c204da5ddcc01ce31635234c58c04e46f487c74 (diff)
downloadportage-2338df45f605f74d8300baf99f806cc738578fb2.tar.gz
portage-2338df45f605f74d8300baf99f806cc738578fb2.tar.bz2
portage-2338df45f605f74d8300baf99f806cc738578fb2.zip
Document interaction between config.setinst() and
old-style virtuals preferences. (trunk r7891) svn path=/main/branches/2.1.2/; revision=7924
-rw-r--r--pym/portage.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 66edec936..3c8dc25b1 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1848,6 +1848,13 @@ class config:
self.reset(keeping_pkg=1,use_cache=use_cache)
def setinst(self,mycpv,mydbapi):
+ """This updates the preferences for old-style virtuals,
+ affecting the behavior of dep_expand() and dep_check()
+ calls. It can change dbapi.match() behavior since that
+ calls dep_expand(). However, dbapi instances have
+ internal match caches that are not invalidated when
+ preferences are updated here. This can potentially
+ lead to some inconsistency (relevant to bug #1343)."""
self.modifying()
if len(self.virtuals) == 0:
self.getvirtuals()