Fixed for slack extra repo

This commit is contained in:
Dimitris Zlatanidis 2024-04-09 20:07:59 +03:00
parent 7e3d69a178
commit b9caceae70

View file

@ -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()