Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2024-03-22 13:12:01 +02:00
parent b66ca72fed
commit 542a80941d

View file

@ -40,6 +40,10 @@ class UpdateRepositories(Configs):
self.option_for_repository: bool = self.utils.is_option(
('-o', '--repository='), flags)
def repositories(self) -> None:
self.repos_for_update: dict = self.check_updates.updates()
self.update_the_repositories()
def update_the_repositories(self) -> None:
if not any(list(self.repos_for_update.values())):
self.view.question()
@ -604,7 +608,3 @@ class UpdateRepositories(Configs):
self.generate.slackbuild_file(self.repos.sbo_repo_path, self.repos.sbo_repo_slackbuilds)
self.data.install_sbo_data()
def repositories(self) -> None:
self.repos_for_update: dict = self.check_updates.updates()
self.update_the_repositories()