mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Fixed docstrings
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
70535997d7
commit
7c4c685bee
1 changed files with 6 additions and 10 deletions
|
@ -18,11 +18,8 @@ from slpkg.sbos.sbo_generate import SBoGenerate
|
|||
|
||||
|
||||
class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
||||
|
||||
"""
|
||||
Updates the local repositories and install the data
|
||||
into the database.
|
||||
"""
|
||||
"""Updates the local repositories
|
||||
and install the data into the database."""
|
||||
|
||||
def __init__(self, flags: list, repository: str):
|
||||
super(Configs, self).__init__()
|
||||
|
@ -42,8 +39,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
('-y', '--yes'), flags)
|
||||
|
||||
def repositories(self) -> None:
|
||||
""" Checks and call the repositories for update.
|
||||
"""
|
||||
"""Checks and call the repositories for update."""
|
||||
self.repos_for_update: dict = self.check_updates.updates()
|
||||
|
||||
if not any(list(self.repos_for_update.values())):
|
||||
|
@ -55,7 +51,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
self.run_update()
|
||||
|
||||
def import_gpg_key(self, repo: str) -> None:
|
||||
""" Imports the GPG KEY.
|
||||
"""Imports the GPG KEY.
|
||||
|
||||
Args:
|
||||
mirror (str): Repository GPG mirror key.
|
||||
|
@ -91,7 +87,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
print(f'Getting GPG key from: {mirror}\n')
|
||||
|
||||
def run_update(self) -> None:
|
||||
""" Update the repositories by category.
|
||||
"""Update the repositories by category.
|
||||
"""
|
||||
for repo, update in self.repos_for_update.items():
|
||||
if update:
|
||||
|
@ -103,7 +99,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
self.update_binary_repos(repo)
|
||||
|
||||
def view_downloading_message(self, repo: str) -> None:
|
||||
""" Prints the syncing message.
|
||||
"""Prints the syncing message.
|
||||
|
||||
Args:
|
||||
repo (str): Repository name.
|
||||
|
|
Loading…
Reference in a new issue