mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fixed for slack extra repo
This commit is contained in:
parent
7e3d69a178
commit
b9caceae70
1 changed files with 4 additions and 4 deletions
|
@ -31,14 +31,14 @@ class Upgrade(Configs):
|
||||||
self.installed_packages: list = []
|
self.installed_packages: list = []
|
||||||
|
|
||||||
def load_installed_packages(self, repository: str) -> None:
|
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_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)
|
self.repos.data_json)
|
||||||
|
|
||||||
if self.repos.repositories[repository]['enable'] and extra_data_file.is_file():
|
if self.repos.repositories[self.repos.slack_extra_repo_name]['enable'] and extra_data_file.is_file():
|
||||||
extra_repo: dict = self.load_data.load(repository, message=False)
|
extra_repo: dict = self.load_data.load(self.repos.slack_extra_repo_name, message=False)
|
||||||
|
|
||||||
installed: dict = self.utils.all_installed()
|
installed: dict = self.utils.all_installed()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue