From 78ac94093375e66ab5bf8c7987d05f3540ae9cd3 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 21 Nov 2019 17:55:15 +0100 Subject: [PATCH] use plural for certain variables and functions Signed-off-by: Nils Philippsen --- distgit_bugzilla_sync/script.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"]: