diff --git a/ChangeLog.txt b/ChangeLog.txt index 869de178..79689326 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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) diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index 599c7bb0..208e6d60 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -70,9 +70,8 @@ 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): - return True + if parse(repo_version) == parse(inst_version) and int(repo_build) > int(inst_build): + return True except InvalidVersion: return False return False