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 authored and pkratoch committed Feb 2, 2024
1 parent 611e33a commit f8db3a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dnf/cli/main.py
Expand Up @@ -149,6 +149,13 @@ def cli_run(cli, base):
else:
msg += _(" or '{}' to use not only best candidate packages").format(
"--nobest")
if base._goal.file_dep_problem_present() and 'filelists' not in cli.base.conf.optional_metadata_types:
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 f8db3a6

Please sign in to comment.