Fixed for installed help text

This commit is contained in:
Dimitris Zlatanidis 2023-03-07 20:44:43 +02:00
parent 2129f15540
commit 4f9d22e165

View file

@ -352,7 +352,7 @@ class Slackbuilds(Configs):
inst_pkg: str = self.utils.is_package_installed(package, self.file_pattern)
inst_pkg_ver: str = self.utils.split_installed_pkg(inst_pkg)[1]
if self.utils.is_package_upgradeable(package, self.file_pattern):
if inst_pkg and self.utils.is_package_upgradeable(package, self.file_pattern):
help_text: str = f'Installed: {package}-{inst_pkg_ver} -> Available: {repo_ver}'
repo_ver: str = f'{inst_pkg_ver} -> {repo_ver}'