From b9caceae7006054ef6b178fd17ca2abbb2bf1cc0 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 9 Apr 2024 20:07:59 +0300 Subject: [PATCH] Fixed for slack extra repo --- slpkg/upgrade.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index 212e9330..fe6fc1cc 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -31,14 +31,14 @@ class Upgrade(Configs): self.installed_packages: list = [] def load_installed_packages(self, repository: str) -> None: - if repository in (self.repos.slack_repo_name, self.repos.salix_repo_name): + if repository == self.repos.slack_repo_name: extra_repo: dict = {} - extra_data_file: Path = Path(self.repos.repositories[repository]['path'], + extra_data_file: Path = Path(self.repos.repositories[self.repos.slack_extra_repo_name]['path'], self.repos.data_json) - if self.repos.repositories[repository]['enable'] and extra_data_file.is_file(): - extra_repo: dict = self.load_data.load(repository, message=False) + if self.repos.repositories[self.repos.slack_extra_repo_name]['enable'] and extra_data_file.is_file(): + extra_repo: dict = self.load_data.load(self.repos.slack_extra_repo_name, message=False) installed: dict = self.utils.all_installed()