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: fix bug #526160
Date: Mon, 27 Oct 2014 09:27:48
Message-Id: 544E100F.1060107@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] depgraph: fix bug #526160 by Alexander Berntsen
1 On 10/27/2014 01:22 AM, Alexander Berntsen wrote:
2 > On 27/10/14 08:33, Zac Medico wrote:
3 >> + if not self._depgraph._virt_deps_visible( + new_child,
4 >> ignore_use=True): + continue + if pkg < new_child: +
5 >> return False
6 > Seems needlessly bit obscure when you could just "if
7 > self.depgraph._virt_deps_visible(new_child, ignore_use=True) and pkg <
8 > new_child" or some variant thereof. But it's a minor qualm.
9
10 I prefer not to group them into a single expression because they are
11 separate heuristics. At some point in the future, we may find that we
12 need to adjust one or both heuristics, add more heuristics, or remove
13 some heuristics. Keeping the heuristics as separate expressions makes it
14 easier to do such modifications. It also provides emphasis to the reader
15 that these are separate heuristics.
16
17 > Otherwise LGTM, go ahead & push.
18
19 Thanks, it's pushed:
20
21 https://github.com/gentoo/portage/commit/d3be49fe6827aa1974856dffe6d5a1aca80a7bed
22 --
23 Thanks,
24 Zac