mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for access
This commit is contained in:
parent
0f0dce5045
commit
b01214b008
1 changed files with 7 additions and 7 deletions
|
@ -35,7 +35,7 @@ class Upgrade(Configs):
|
|||
def is_package_upgradeable(self, installed: str) -> bool:
|
||||
inst_name: str = self.utils.split_package(installed)['name']
|
||||
if self.data.get(inst_name):
|
||||
repo_package: str = self.data.get(inst_name).get('package')[:-4]
|
||||
repo_package: str = self.data[inst_name]['package'][:-4]
|
||||
if parse_version(repo_package) > parse_version(installed):
|
||||
return True
|
||||
return False
|
||||
|
@ -50,12 +50,12 @@ class Upgrade(Configs):
|
|||
for installed in installed_packages:
|
||||
name: str = self.utils.split_package(installed.name)['name']
|
||||
if self.data[repo].get(name):
|
||||
repo_package: str = self.data[repo].get(name).get('package')[:-4]
|
||||
repo_package: str = self.data[repo][name]['package'][:-4]
|
||||
if parse_version(repo_package) > parse_version(installed.name):
|
||||
self.count_packages += 1
|
||||
self.count_repos.append(repo)
|
||||
repo_version: str = self.data[repo].get(name).get('version')
|
||||
repo_build: str = self.data[repo].get(name).get('build')
|
||||
repo_version: str = self.data[repo][name]['version']
|
||||
repo_build: str = self.data[repo][name]['build']
|
||||
inst_version: str = self.utils.split_package(installed.name)['version']
|
||||
inst_build: str = self.utils.split_package(installed.name)['build']
|
||||
|
||||
|
@ -76,11 +76,11 @@ class Upgrade(Configs):
|
|||
for installed in installed_package:
|
||||
name: str = self.utils.split_package(installed.name)['name']
|
||||
if self.data.get(name):
|
||||
repo_package: str = self.data.get(name).get('package')[:-4]
|
||||
repo_package: str = self.data[name]['package'][:-4]
|
||||
if parse_version(repo_package) > parse_version(installed.name):
|
||||
self.count_packages += 1
|
||||
repo_version: str = self.data.get(name).get('version')
|
||||
repo_build: str = self.data.get(name).get('build')
|
||||
repo_version: str = self.data[name]['version']
|
||||
repo_build: str = self.data[name]['build']
|
||||
inst_version: str = self.utils.split_package(installed.name)['version']
|
||||
inst_build: str = self.utils.split_package(installed.name)['build']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue