List Archive: gentoo-portage-dev
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
On 03/03/2011 09:47 AM, Michael wrote:
> Zac Medico wrote:
>> It seems like you wouldn't have to modify the code that your patch
>> modifies, since essentially what you want is --autounmask except that
>> you want to skip the part about editing config files. Also note that
>> there is an existing feature request to edit config files automatically:
> Interesting, especially #258371 as referenced by the above - it seems to be
> exactly what I was after.
> If I'm way off even in terms of code location, where would a more
> appropriate place for me to hack this be?
Inside depgraph._resolve(), it returns False if
self._dynamic_config._needed_use_config_changes is non-empty. You want
to add an option that causes it to return True instead. Also, you'll
need to propagate these changes to the config.setcpv() method somehow,
so that the changes will be applied by the Scheduler at build time.
Normally, the config.setcpv() method calculates USE based on config
files, but you want it override the config files with whatever values
the depgraph's _needed_use_config_changes contains.