EbuildMetadataPhase: handle empty EAPI from bash
authorZac Medico <zmedico@gentoo.org>
Wed, 9 May 2012 20:31:52 +0000 (13:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 May 2012 20:31:52 +0000 (13:31 -0700)
pym/_emerge/EbuildMetadataPhase.py

index b7af69dc8e49bbe1842ce75c68dcadc5ebf20760..7f9bd3bf2e064a4dbaca7b585d678193729c25d9 100644 (file)
@@ -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: