Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] egencache: Always output EAPI=0 in cache entries
Date: Tue, 11 Aug 2015 17:54:16
Message-Id: 55CA36C2.3030008@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] egencache: Always output EAPI=0 in cache entries by "Michał Górny"
1 On 08/11/2015 10:38 AM, Michał Górny wrote:
2 > Remove the code skipping EAPI=0 output in cache entries. There is really
3 > no reason to treat EAPI=0 specially here, and this makes the output more
4 > consistent.
5 > ---
6 > bin/egencache | 2 --
7 > 1 file changed, 2 deletions(-)
8 >
9 > diff --git a/bin/egencache b/bin/egencache
10 > index 6075ccf..5c00248 100755
11 > --- a/bin/egencache
12 > +++ b/bin/egencache
13 > @@ -297,8 +297,6 @@ class GenCache(object):
14 > # EAPI from _parse_eapi_ebuild_head, we don't write cache
15 > # entries for unsupported EAPIs.
16 > if metadata is not None and eapi_supported:
17 > - if metadata.get('EAPI') == '0':
18 > - del metadata['EAPI']
19 > for trg_cache in self._trg_caches:
20 > self._write_cache(trg_cache,
21 > cpv, repo_path, metadata, ebuild_hash)
22 >
23
24 LTGM.
25 --
26 Thanks,
27 Zac

Replies