From 2d6e9af19915ee762d86a37ecdd2a0568d22d9b1 Mon Sep 17 00:00:00 2001 From: Oskari Pirhonen Date: Sun, 9 Jul 2023 00:08:27 -0500 Subject: [PATCH] depgraph.py: fix "no ebuilds/binpkgs" message The "there are no binary packages to satisfy" was being unconditionally output for packages that could not be found. Fix the logic for choosing between the "binary packages" and "ebuilds" form of the message. This is a temporary stopgap as alluded to by me in the bug, but the tl;dr is that some entries in the `myopts` dict have "y"/"n" values whereas some are True/unset, and this discrepancy should be sorted out. Bug: https://bugs.gentoo.org/909853 Signed-off-by: Oskari Pirhonen --- lib/_emerge/depgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py index a36ab6351b..1aeae62579 100644 --- a/lib/_emerge/depgraph.py +++ b/lib/_emerge/depgraph.py @@ -6456,7 +6456,7 @@ def _show_unsatisfied_dep( cp_exists = True break - if self._frozen_config.myopts.get("--usepkgonly", "y"): + if self._frozen_config.myopts.get("--usepkgonly", False): writemsg( f"\nemerge: there are no binary packages to satisfy {green(xinfo)}.\n", noiselevel=-1,