more typo, plural, wording fixes
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
82374d6739
commit
4a590170b0
2 changed files with 14 additions and 14 deletions
|
@ -52,7 +52,7 @@ from requests.adapters import HTTPAdapter
|
|||
from urllib3.util import Retry
|
||||
import yaml
|
||||
|
||||
from . import package_summary
|
||||
from . import package_summaries
|
||||
from .config import config, email_overrides, load_configuration
|
||||
|
||||
|
||||
|
@ -598,16 +598,16 @@ class DistgitBugzillaSync:
|
|||
watchers=pagure_namespace_to_cc[namespace][name],
|
||||
))
|
||||
|
||||
def add_branches_product_and_summary(self):
|
||||
""" For each project retrieved this method adds branches, products
|
||||
def add_branches_products_and_summaries(self):
|
||||
""" For each project retrieved, this method adds branches, products
|
||||
and summary information.
|
||||
|
||||
The branches are retrieved from PDC
|
||||
The branches are retrieved from PDC.
|
||||
|
||||
The products are determined based on the branches.
|
||||
|
||||
The summary is coming from the primary.xml file from the repodata
|
||||
of the rawhide repository in koji.
|
||||
The summaries are coming from the primary.xml file of the Rawhide repodata
|
||||
in Koji.
|
||||
"""
|
||||
branches_url = "/".join([
|
||||
self.env['pdc_url'].split('rest_api')[0].rstrip("/"),
|
||||
|
@ -621,7 +621,7 @@ class DistgitBugzillaSync:
|
|||
# Summary
|
||||
summary = None
|
||||
if project["namespace"] == "rpms":
|
||||
summary = self.rpm_summary.get(project["name"])
|
||||
summary = self.rpm_summaries.get(project["name"])
|
||||
project["summary"] = summary
|
||||
|
||||
# Branches
|
||||
|
@ -735,11 +735,11 @@ class DistgitBugzillaSync:
|
|||
self.session = retry_session()
|
||||
|
||||
if self.env["verbose"]:
|
||||
print("Building a cache of the rpm packages' summary")
|
||||
self.rpm_summary = package_summary.get_package_summary()
|
||||
print("Building a cache of the rpm package summaries")
|
||||
self.rpm_summaries = package_summaries.get_package_summaries()
|
||||
|
||||
self.get_pagure_projects(self.args.projects)
|
||||
self.add_branches_product_and_summary()
|
||||
self.add_branches_products_and_summaries()
|
||||
|
||||
if self.env["verbose"]:
|
||||
print(f"{len(self.pagure_projects)} projects to consider")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue