summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-09-30 18:57:25 +0000
committerZac Medico <zmedico@gentoo.org>2007-09-30 18:57:25 +0000
commit6eeb6fd8c40df09d0c5d462c5fa91e8e7b273b40 (patch)
treecf9cea225648f39f38c344631fc0519bff54a439
parente31413b58cf1bef87e6c33ca067e17c0e2d1fdfc (diff)
downloadportage-6eeb6fd8c40df09d0c5d462c5fa91e8e7b273b40.tar.gz
portage-6eeb6fd8c40df09d0c5d462c5fa91e8e7b273b40.tar.bz2
portage-6eeb6fd8c40df09d0c5d462c5fa91e8e7b273b40.zip
Document interaction between config.setinst() and
old-style virtuals preferences. svn path=/main/trunk/; revision=7891
-rw-r--r--pym/portage/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 24b246be7..8ffe9c275 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1896,6 +1896,13 @@ class config(object):
return ret
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()