From 546f33c200052cc60eff444dace3c7ace1742f2b Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 2 Apr 2023 22:20:17 +0300 Subject: [PATCH] Updated for parse version --- ChangeLog.txt | 4 ++++ slpkg/upgrade.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 0b55ef6e..02ef6ee0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +4.7.2 - 02/04/2023 +Updated: +- Packaging parse versions + 4.7.1 - 02/04/2023 Fixed: - TypeError: can only concatenate str (not "NoneType") to str diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index b87677e9..93848b9a 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -55,4 +55,4 @@ class Upgrade(Configs): repo_version: str = SBoQueries(name).version() repo_build: str = self.utils.read_sbo_build_tag(name) - return parse(repo_version + repo_build) > parse(inst_version + inst_build) + return parse(f'{repo_version}{repo_build}') > parse(f'{inst_version}{inst_build}')