From b1533c8b9f68ca3bb7e387403c5da039aebe3ab8 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 13 May 2023 16:45:28 +0300 Subject: [PATCH] Updated for check --- slpkg/check_updates.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/slpkg/check_updates.py b/slpkg/check_updates.py index 76c24012..8236b468 100644 --- a/slpkg/check_updates.py +++ b/slpkg/check_updates.py @@ -48,13 +48,13 @@ class CheckUpdates(Configs): def check_the_repositories(self) -> dict: if self.option_for_repository: - self.check_for_repository() + self.check_updates_for_repository() else: - self.check_for_repositories() + self.check_updates_for_repositories() return self.compare - def check_for_repository(self): + def check_updates_for_repository(self): sbo_repository: dict = { self.repos.sbo_repo_name: self.sbo_repository, self.repos.ponce_repo_name: self.ponce_repository @@ -65,7 +65,7 @@ class CheckUpdates(Configs): else: sbo_repository[self.repository]() - def check_for_repositories(self): + def check_updates_for_repositories(self): if self.repos.sbo_repo: self.sbo_repository() @@ -79,7 +79,8 @@ class CheckUpdates(Configs): def binary_repository(self, repo: str) -> None: local_chg_txt: Path = Path(self.repos.repositories[repo]['path'], self.repos.repositories[repo]['changelog_txt']) - repo_chg_txt: str = f"{self.repos.repositories[repo]['mirror'][0]}{self.repos.repositories[repo]['changelog_txt']}" + repo_chg_txt: str = (f"{self.repos.repositories[repo]['mirror'][0]}" + f"{self.repos.repositories[repo]['changelog_txt']}") self.compare[repo] = self.compare_the_changelogs(local_chg_txt, repo_chg_txt) def sbo_repository(self) -> None: @@ -125,9 +126,9 @@ class CheckUpdates(Configs): def check_for_updates(self) -> None: self.check_the_repositories() - self.print_the_messages() + self.view_messages() - def print_the_messages(self) -> None: + def view_messages(self) -> None: print() for repo, comp in self.compare.items(): if comp: