Fixed to compare versions for dependencies

This commit is contained in:
Dimitris Zlatanidis 2023-02-27 18:16:44 +02:00
parent cafd129cd0
commit 5c3432feed
2 changed files with 5 additions and 4 deletions

View file

@ -6,6 +6,7 @@ Added:
- Help command for extra helping - Help command for extra helping
Fixed: Fixed:
- TOML decoder error for blacklist file - TOML decoder error for blacklist file
- Fixed to compare versions for dependencies (Thanks to marav)
4.5.3 - 27/01/2023 4.5.3 - 27/01/2023
Added: Added:

View file

@ -329,12 +329,12 @@ class Slackbuilds(Configs):
title = ' Choose dependencies you want to install ' title = ' Choose dependencies you want to install '
for package in dependencies: for package in dependencies:
status = True status = False
repo_ver = SBoQueries(package).version() 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: if self.utils.is_repo_version_bigger(package, self.file_pattern):
status = False status = True
choices += [(package, repo_ver, status)] choices += [(package, repo_ver, status)]