Skip to content

Commit

Permalink
depgraph.py: fix "no ebuilds/binpkgs" message
Browse files Browse the repository at this point in the history
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.

[sam: Add NEWS and Fixes, although the change in that commit _shouldn't_
have been wrong, it is because of a quirk for now...]

Bug: https://bugs.gentoo.org/909853
Signed-off-by: Oskari Pirhonen <[email protected]>
Closes: #1065
Fixes: 0b21a5a
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
xxc3nsoredxx authored and thesamesam committed Jul 9, 2023
1 parent 9a41acc commit b199d03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Bug fixes:
* install-qa-check.d/05prefix: Fix prefixifying shebang for >= EAPI 7 ebuilds
(bug #909147).

* emerge: Fix 'no ebuilds available' message always mentioning binpkgs
(bug #909853).

* gpkg: Fix timestamp for binary packages (bug #909067).

portage-3.0.49 (2023-06-21)
Expand Down
2 changes: 1 addition & 1 deletion lib/_emerge/depgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b199d03

Please sign in to comment.