From: Zac Medico Date: Wed, 9 May 2012 20:31:52 +0000 (-0700) Subject: EbuildMetadataPhase: handle empty EAPI from bash X-Git-Tag: v2.2.0_alpha103~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=caceafbca156fdd1e5cc64d1e24a6bdc39022945;p=portage.git EbuildMetadataPhase: handle empty EAPI from bash --- diff --git a/pym/_emerge/EbuildMetadataPhase.py b/pym/_emerge/EbuildMetadataPhase.py index b7af69dc8..7f9bd3bf2 100644 --- a/pym/_emerge/EbuildMetadataPhase.py +++ b/pym/_emerge/EbuildMetadataPhase.py @@ -158,7 +158,8 @@ class EbuildMetadataPhase(SubProcess): parsed_eapi = self._eapi if parsed_eapi is None: parsed_eapi = "0" - if portage.eapi_is_supported(metadata["EAPI"]) and \ + if (not metadata["EAPI"] or + portage.eapi_is_supported(metadata["EAPI"])) and \ metadata["EAPI"] != parsed_eapi: self._eapi_invalid(metadata) if 'parse-eapi-ebuild-head' in self.settings.features: