mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for check upgrade
This commit is contained in:
parent
703c0e3696
commit
03ba4b17d2
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ 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.salixos_repo_name]:
|
if repository == self.repos.slack_repo_name:
|
||||||
installed: dict = self.utils.all_installed()
|
installed: dict = self.utils.all_installed()
|
||||||
|
|
||||||
for name, package in installed.items():
|
for name, package in installed.items():
|
||||||
|
@ -78,7 +78,6 @@ class Upgrade(Configs):
|
||||||
|
|
||||||
def check_packages(self) -> None:
|
def check_packages(self) -> None:
|
||||||
repo_data: dict = {}
|
repo_data: dict = {}
|
||||||
found_packages: dict = {}
|
|
||||||
|
|
||||||
if self.repository == '*':
|
if self.repository == '*':
|
||||||
repo_data: dict = self.data
|
repo_data: dict = self.data
|
||||||
|
@ -86,6 +85,7 @@ class Upgrade(Configs):
|
||||||
repo_data[self.repository] = self.data
|
repo_data[self.repository] = self.data
|
||||||
|
|
||||||
for repo, data in repo_data.items():
|
for repo, data in repo_data.items():
|
||||||
|
found_packages: dict = {}
|
||||||
self.load_installed_packages(repo)
|
self.load_installed_packages(repo)
|
||||||
|
|
||||||
for installed in self.installed_packages:
|
for installed in self.installed_packages:
|
||||||
|
|
Loading…
Add table
Reference in a new issue