always create inverted_user_cache

This should take negligible time.

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2019-11-22 13:13:41 +01:00
parent 6e479a6a05
commit 96eb19bcb7

View file

@ -141,6 +141,8 @@ class BugzillaProxy:
# Sometimes, building the user cache up front fails with a timeout.
# It's ok, we build the cache as-needed later in the script.
self.user_cache = {}
else:
self.invert_user_cache()
def build_product_cache(self, pagure_projects):
""" Cache the bugzilla info about each package in each product.
@ -748,8 +750,6 @@ class DistgitBugzillaSync:
self.env['bugzilla']['user'],
self.env['bugzilla']['password'],
self.env)
if self.args.print_fas_names:
bugzilla.invert_user_cache()
if self.env["verbose"]:
times["FAS cache building end"] = time.time()