From 5c3432feedfdfcd9e531b0e420366541acbc9755 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 27 Feb 2023 18:16:44 +0200 Subject: [PATCH] Fixed to compare versions for dependencies --- ChangeLog.txt | 1 + slpkg/slackbuild.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 64fa9e6c..8bc81992 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -6,6 +6,7 @@ Added: - Help command for extra helping Fixed: - TOML decoder error for blacklist file +- Fixed to compare versions for dependencies (Thanks to marav) 4.5.3 - 27/01/2023 Added: diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index 1d50dba6..49b0a383 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -329,12 +329,12 @@ class Slackbuilds(Configs): title = ' Choose dependencies you want to install ' for package in dependencies: - status = True + status = False repo_ver = SBoQueries(package).version() - installed = self.utils.is_installed(package, self.file_pattern) + self.utils.is_repo_version_bigger(package, self.file_pattern) - if installed: - status = False + if self.utils.is_repo_version_bigger(package, self.file_pattern): + status = True choices += [(package, repo_ver, status)]