diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index 8f1a3ab..9baffca 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -140,7 +140,7 @@ class BugzillaProxy: # It's ok, we build the cache as-needed later in the script. self.user_cache = {} - def build_product_cache(self, pagure_project): + def build_product_cache(self, pagure_projects): """ Cache the bugzilla info about each package in each product. """ @@ -160,7 +160,7 @@ class BugzillaProxy: # interest pkglist = [ project["name"] - for project in pagure_project + for project in pagure_projects if product in project["products"] ] for pkg_segment in segment(pkglist, self.config['bugzilla']['req_segment']): @@ -503,7 +503,7 @@ class DistgitBugzillaSync: self.args = parser.parse_args() - def get_pagure_project(self, project_list=None): + def get_pagure_projects(self, project_list=None): """ Builds a large list of all the projects on pagure. Each item in that list is a dict containing: - the namespace of the project @@ -679,7 +679,7 @@ class DistgitBugzillaSync: print("Building a cache of the rpm packages' summary") self.rpm_summary = package_summary.get_package_summary() - self.get_pagure_project(self.args.projects) + self.get_pagure_projects(self.args.projects) self.add_branches_product_and_summary() if self.env["verbose"]: