Skip to content
Permalink
Browse files

[repoquery] Handle --querytags, before updateFailSafeData

Otherwise the error occures instead of listing available tags:
$ dnf repoquery --querytags
Error: Sack was not initialized
  • Loading branch information...
m-blaha authored and j-mracek committed Jun 13, 2019
1 parent e82f034 commit 5f5a95afb598038e6b5ed39131e0e089352a441a
Showing with 1 addition and 1 deletion.
  1. +1 −1 dnf/cli/commands/repoquery.py
@@ -400,11 +400,11 @@ def _get_recursive_providers_query(self, query_in, providers, done=None):
return t.union(done)

def run(self):
self.base._moduleContainer.updateFailSafeData()
if self.opts.querytags:
print(_('Available query-tags: use --queryformat ".. %{tag} .."'))
print(QUERY_TAGS)
return
self.base._moduleContainer.updateFailSafeData()

self.cli._populate_update_security_filter(self.opts, self.base.sack.query())

0 comments on commit 5f5a95a

Please sign in to comment.
You can’t perform that action at this time.