1 |
On 04/19/2016 06:40 PM, Adam Mills wrote: |
2 |
> Three new settings were added to /etc/portage/color.map: |
3 |
> PKG_MERGE_USER_SET, PKG_BINARY_MERGE_USER_SET, and |
4 |
> PKG_NOMERGE_USER_SET. These colors are applied when the package is |
5 |
> selected from a set in /etc/portage/sets/ |
6 |
> |
7 |
> X-Gentoo-bug: 577720 |
8 |
> X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=577720 |
9 |
> --- |
10 |
> |
11 |
> [PATCH v4] Created one InternalPackageSet for each root |
12 |
> [PATCH v3] Updates based on feedback from IRC meeting |
13 |
> [PATCH v2] Simplification of check_sets ref Alexander Berntsen's feedback_ |
14 |
|
15 |
Thanks, it looks really nice now. |
16 |
|
17 |
> + # Create a single merged user set for each root |
18 |
> + self.user_sets = {} |
19 |
> + for root_name, root in self.roots.items(): |
20 |
> + self.user_sets[root_name] = InternalPackageSet(initial_atoms= \ |
21 |
> + chain.from_iterable(pkgset.getAtoms() \ |
22 |
> + for pkgset_name, pkgset in root.sets.items() \ |
23 |
> + if pkgset.user_set)) |
24 |
> + |
25 |
|
26 |
Since the pkgset_name variable is unused, we could do it like this: |
27 |
|
28 |
for pkgset in root.sets.values() |
29 |
|
30 |
|
31 |
-- |
32 |
Thanks, |
33 |
Zac |