Skip to content

Commit

Permalink
Add a hint for user on transaction file dependency failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kolarik committed Dec 8, 2023
1 parent cb54681 commit 66caf0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dnf/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ def cli_run(cli, base):
else:
msg += _(" or '{}' to use not only best candidate packages").format(
"--nobest")
if base._goal.file_dep_problem_present():
if any(r.load_filelists == False for r in base.repos.iter_enabled()):
if not msg:
msg += _("try to add '{}' to load additional filelists metadata").format(
"--setopt=optional_metadata_types=filelists")
else:
msg += _(" or '{}' to load additional filelists metadata").format(
"--setopt=optional_metadata_types=filelists")
if msg:
logger.info("({})".format(msg))
raise
Expand Down

0 comments on commit 66caf0c

Please sign in to comment.