commit:     5982e0a819e51c344e25c91c738d851192e188c0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 11 17:37:04 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 11 19:56:28 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=5982e0a8

egencache: Always output EAPI=0 in cache entries

Remove the code skipping EAPI=0 output in cache entries. There is really
no reason to treat EAPI=0 specially here, and this makes the output more
consistent.

Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
Reviewed-by: Brian Dolbec <dolsen <AT> gentoo.org>

 bin/egencache | 2 --
 1 file changed, 2 deletions(-)

diff --git a/bin/egencache b/bin/egencache
index 6075ccf..5c00248 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -297,8 +297,6 @@ class GenCache(object):
                # EAPI from _parse_eapi_ebuild_head, we don't write cache
                # entries for unsupported EAPIs.
                if metadata is not None and eapi_supported:
-                       if metadata.get('EAPI') == '0':
-                               del metadata['EAPI']
                        for trg_cache in self._trg_caches:
                                self._write_cache(trg_cache,
                                        cpv, repo_path, metadata, ebuild_hash)

Reply via email to