Updated for status

This commit is contained in:
Dimitris Zlatanidis 2023-04-27 17:22:48 +03:00
parent 2f2c7e3dbf
commit ea4bdfde05
2 changed files with 6 additions and 23 deletions

View file

@ -215,21 +215,14 @@ class Packages(Configs):
title: str = ' Choose dependencies you want to install ' title: str = ' Choose dependencies you want to install '
for package in dependencies: for package in dependencies:
status: bool = False status: bool = True
repo_ver: str = self.data[package][0] repo_ver: str = self.data[package][0]
help_text: str = f'Package: {package} {repo_ver}' help_text: str = f'Package: {package} {repo_ver}'
upgradable: bool = self.upgrade.is_package_upgradeable(package)
installed: str = self.utils.is_package_installed(package) installed: str = self.utils.is_package_installed(package)
if self.mode == 'upgrade' and upgradable: if installed:
status: bool = True status: bool = False
if self.mode == 'install' and upgradable:
status: bool = True
if self.mode == 'install' and not installed:
status: bool = True
if self.option_for_reinstall: if self.option_for_reinstall:
status: bool = True status: bool = True

View file

@ -360,25 +360,15 @@ class Slackbuilds(Configs):
title: str = ' Choose dependencies you want to install ' title: str = ' Choose dependencies you want to install '
for package in dependencies: for package in dependencies:
status: bool = False status: bool = True
repo_ver: str = self.data[package][2] repo_ver: str = self.data[package][2]
description: str = self.data[package][8] description: str = self.data[package][8]
help_text: str = f'Description: {description}' help_text: str = f'Description: {description}'
upgradable: bool = self.upgrade.is_package_upgradeable(package)
installed: str = self.utils.is_package_installed(package) installed: str = self.utils.is_package_installed(package)
if self.mode == 'build': if installed:
status: bool = True status: bool = False
if self.mode == 'upgrade':
status: bool = True
if self.mode == 'install' and upgradable:
status: bool = True
if self.mode == 'install' and not installed:
status: bool = True
if self.option_for_reinstall: if self.option_for_reinstall:
status: bool = True status: bool = True