Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] depgraph: autounmask for conditional USE deps (bug 566704)
Date: Tue, 24 Nov 2015 17:13:49
Message-Id: 56549AC4.8040307@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] depgraph: autounmask for conditional USE deps (bug 566704) by Alexander Berntsen
1 On 11/24/2015 03:47 AM, Alexander Berntsen wrote:
2 > What's up with the pargs/kwargs stuff? I don't remember that stuff.
3 >
4 > Specifically, what does
5 > On 24/11/15 10:30, Zac Medico wrote:
6 >> + pargs, kwargs = item
7 >> + kwargs = kwargs.copy()
8 >> + kwargs['collect_use_changes'] = True
9 >> + if not self._show_unsatisfied_dep(*pargs,
10 >> + **portage._native_kwargs(kwargs))
11 >
12 > really do line by line?
13
14 Oh, let me explain better. The args and kwargs contain arguments for
15 _show_unsatisfied_dep that have been queued for later display. Instead
16 of actually displaying the unsatisfied deps, this code passes an extra
17 collect_use_changes argument to _show_unsatisfied_dep, causing it to
18 create appropriate autounmask changes to solve these unsatisfied deps.
19 --
20 Thanks,
21 Zac