Add an additional note about $ROOT and USE flag handling in dep_check.
authorZac Medico <zmedico@gentoo.org>
Mon, 4 Sep 2006 23:58:20 +0000 (23:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 4 Sep 2006 23:58:20 +0000 (23:58 -0000)
svn path=/main/trunk/; revision=4407

pym/portage.py

index c9ad04a885906f483f6774257f025f24cbafd61f..dee3005a51439907202cc5adb0ab42c8fc351487 100644 (file)
@@ -3456,6 +3456,9 @@ def dep_check(depstring, mydbapi, mysettings, use="yes", mode=None, myuse=None,
                        # should have already been applied via config.regenerate().  Also,
                        # binary or installed packages may have been built with flags that
                        # are now masked, and it would be inconsistent to mask them now.
+                       # Additionally, myuse may consist of flags from a parent package
+                       # that is being merged to a $ROOT that is different from the one
+                       # that mysettings represents.
                        mymasks.update(mysettings.usemask)
                        mymasks.update(mysettings.pusemask)
                        mymasks.update(mysettings.archlist())