Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2024-03-29 23:53:18 +02:00
parent e69c8455b6
commit 664869539b
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,9 @@
## slpkg - ChangeLog
### 5.0.2 - 29/03/2024
- Updated:
* Updated for coding style
### 5.0.1 - 29/03/2024
- Updated:
* Updated to check upgrade packages against all repositories (slpkg upgrade --repository='*' --check)

View file

@ -70,8 +70,7 @@ class Upgrade(Configs):
if parse(repo_version) > parse(inst_version):
return True
if parse(repo_version) == parse(inst_version):
if int(repo_build) > int(inst_build):
if parse(repo_version) == parse(inst_version) and int(repo_build) > int(inst_build):
return True
except InvalidVersion:
return False