Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] per package environment: generalize the mechanism to be profile specific
Date: Tue, 16 Sep 2014 19:18:04
Message-Id: 54188CE6.5030104@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] per package environment: generalize the mechanism to be profile specific by Bertrand Simonnet
1 On 09/16/2014 11:17 AM, Bertrand Simonnet wrote:
2 > I moved the profile attributes detection logic into the python side as
3 > suggested (much cleaner).
4
5 Thanks, that's better. I've got a couple more issues though:
6
7 1) Like global functions, global variables should also be unset in
8 __save_ebuild_env. So, we should unset PORTAGE_PROFILE_ATTRIBUTES there.
9
10 2) Instead of having _get_profile_attributes read the layout.conf files
11 directly, it would be nicer if we could integrated it with the
12 LocationsManager layout.conf parsing. For example, see the
13 intersecting_repos code inside the _addProfile method.
14 --
15 Thanks,
16 Zac

Replies