diff --git a/slpkg/update_repositories.py b/slpkg/update_repositories.py index 8ed54dd6..08371727 100644 --- a/slpkg/update_repositories.py +++ b/slpkg/update_repositories.py @@ -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()