From caceafbca156fdd1e5cc64d1e24a6bdc39022945 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 9 May 2012 13:31:52 -0700 Subject: [PATCH] EbuildMetadataPhase: handle empty EAPI from bash --- pym/_emerge/EbuildMetadataPhase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.26.2