mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Updated for check upgrade
This commit is contained in:
parent
03ba4b17d2
commit
1f3c9084a3
1 changed files with 3 additions and 2 deletions
|
@ -78,6 +78,7 @@ class Upgrade(Configs):
|
|||
|
||||
def check_packages(self) -> None:
|
||||
repo_data: dict = {}
|
||||
found_packages: dict = {}
|
||||
|
||||
if self.repository == '*':
|
||||
repo_data: dict = self.data
|
||||
|
@ -85,7 +86,6 @@ class Upgrade(Configs):
|
|||
repo_data[self.repository] = self.data
|
||||
|
||||
for repo, data in repo_data.items():
|
||||
found_packages: dict = {}
|
||||
self.load_installed_packages(repo)
|
||||
|
||||
for installed in self.installed_packages:
|
||||
|
@ -113,7 +113,8 @@ class Upgrade(Configs):
|
|||
}
|
||||
|
||||
if repo == self.repos.slack_repo_name and self.removed_packages:
|
||||
if name not in data.keys():
|
||||
tag: str = self.utils.split_package(installed.name)['tag']
|
||||
if not tag and name not in data.keys():
|
||||
self.id += 1
|
||||
self.sum_removed += 1
|
||||
inst_version: str = self.utils.split_package(installed.name)['version']
|
||||
|
|
Loading…
Reference in a new issue