Fixed upgrade packages

This commit is contained in:
Dimitris Zlatanidis 2023-04-04 21:32:12 +03:00
parent d6e01893df
commit b808874155
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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