From: Zac Medico Date: Sat, 15 Oct 2011 23:28:04 +0000 (-0700) Subject: EbuildMetadataPhase: tweak metadata_callback usage X-Git-Tag: v2.2.0_alpha68~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=accfa9e43415d5fb54d98786859c444685ed1e4a;p=portage.git 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. --- 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