diff --git a/dnf/cli/commands/repoquery.py b/dnf/cli/commands/repoquery.py index cc1794deb5..83b52a8abe 100644 --- a/dnf/cli/commands/repoquery.py +++ b/dnf/cli/commands/repoquery.py @@ -327,7 +327,7 @@ def configure(self): if self.opts.querychangelogs: demands.changelogs = True - if self.opts.queryfilelist or dnf.util._is_file_pattern_present(self.opts.key): + if self.opts.queryfilelist or self.opts.file or dnf.util._is_file_pattern_present(self.opts.key): self.base.conf.optional_metadata_types += ["filelists"] def build_format_fn(self, opts, pkg):