commit: cc4dbc03be64f3c8c22522b99410c45123d90df0 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Oct 28 05:19:04 2025 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Oct 28 05:22:10 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=cc4dbc03
portdbapi: report unexpected returncode of failed EbuildMetadataPhase Bug: https://bugs.gentoo.org/965132 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> lib/portage/dbapi/porttree.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/portage/dbapi/porttree.py b/lib/portage/dbapi/porttree.py index 6431e5bf85..3ca99381c1 100644 --- a/lib/portage/dbapi/porttree.py +++ b/lib/portage/dbapi/porttree.py @@ -852,6 +852,14 @@ class portdbapi(dbapi): return if proc is not None: if proc.returncode != os.EX_OK: + if proc.returncode != 1: + writemsg( + _( + "!!! aux_get(): metadata phase for package '%(pkg)s' failed with unexpected returncode %(returncode)s\n" + ) + % {"pkg": mycpv, "returncode": proc.returncode}, + noiselevel=-1, + ) self._broken_ebuilds.add(myebuild) future.set_exception(PortageKeyError(mycpv)) return
