mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed upgrade packages
This commit is contained in:
parent
d6e01893df
commit
b808874155
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
4.7.5 - 04/04/2023
|
||||
Fixed:
|
||||
- Upgrade packages with build numbers greater to >= 10
|
||||
|
||||
4.7.5 - 04/04/2023
|
||||
BugFixed:
|
||||
- Upgrade packages from repositories
|
||||
|
|
|
@ -61,4 +61,10 @@ class Upgrade(Configs):
|
|||
# print(f'{name} {repo_version}{repo_build} {inst_version}{inst_build}',
|
||||
# parse(f'{repo_version}{repo_build}') > parse(f'{inst_version}{inst_build}'))
|
||||
|
||||
return parse(f'{repo_version}{repo_build}') > parse(f'{inst_version}{inst_build}')
|
||||
if parse(repo_version) > parse(inst_version):
|
||||
return True
|
||||
|
||||
if parse(repo_version) == parse(inst_version) and parse(repo_build) > parse(inst_build):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue