From 96eb19bcb7650971d857eedfd695cad37a8d4299 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 22 Nov 2019 13:13:41 +0100 Subject: [PATCH] always create inverted_user_cache This should take negligible time. Signed-off-by: Nils Philippsen --- distgit_bugzilla_sync/script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index 8dce05e..bd2bdfa 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -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()