From accfa9e43415d5fb54d98786859c444685ed1e4a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Oct 2011 16:28:04 -0700 Subject: [PATCH] EbuildMetadataPhase: tweak metadata_callback usage For parse-eapi-ebuild-head, we want to assign self.metadata from the return value, for conformity with usage elsewhere. --- pym/_emerge/EbuildMetadataPhase.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/_emerge/EbuildMetadataPhase.py b/pym/_emerge/EbuildMetadataPhase.py index 6ef7c0010..2fbd29eb7 100644 --- a/pym/_emerge/EbuildMetadataPhase.py +++ b/pym/_emerge/EbuildMetadataPhase.py @@ -44,9 +44,8 @@ class EbuildMetadataPhase(SubProcess): if eapi is not None: if not portage.eapi_is_supported(eapi): - self.metadata = {'EAPI' : eapi} - self.metadata_callback(self.cpv, - self.repo_path, self.metadata, self.ebuild_hash) + self.metadata = self.metadata_callback(self.cpv, + self.repo_path, {'EAPI' : eapi}, self.ebuild_hash) self._set_returncode((self.pid, os.EX_OK << 8)) self.wait() return -- 2.26.2