mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Updated for status
This commit is contained in:
parent
2f2c7e3dbf
commit
ea4bdfde05
2 changed files with 6 additions and 23 deletions
|
@ -215,21 +215,14 @@ class Packages(Configs):
|
|||
title: str = ' Choose dependencies you want to install '
|
||||
|
||||
for package in dependencies:
|
||||
status: bool = False
|
||||
status: bool = True
|
||||
|
||||
repo_ver: str = self.data[package][0]
|
||||
help_text: str = f'Package: {package} {repo_ver}'
|
||||
upgradable: bool = self.upgrade.is_package_upgradeable(package)
|
||||
installed: str = self.utils.is_package_installed(package)
|
||||
|
||||
if self.mode == 'upgrade' and upgradable:
|
||||
status: bool = True
|
||||
|
||||
if self.mode == 'install' and upgradable:
|
||||
status: bool = True
|
||||
|
||||
if self.mode == 'install' and not installed:
|
||||
status: bool = True
|
||||
if installed:
|
||||
status: bool = False
|
||||
|
||||
if self.option_for_reinstall:
|
||||
status: bool = True
|
||||
|
|
|
@ -360,25 +360,15 @@ class Slackbuilds(Configs):
|
|||
title: str = ' Choose dependencies you want to install '
|
||||
|
||||
for package in dependencies:
|
||||
status: bool = False
|
||||
status: bool = True
|
||||
|
||||
repo_ver: str = self.data[package][2]
|
||||
description: str = self.data[package][8]
|
||||
help_text: str = f'Description: {description}'
|
||||
upgradable: bool = self.upgrade.is_package_upgradeable(package)
|
||||
installed: str = self.utils.is_package_installed(package)
|
||||
|
||||
if self.mode == 'build':
|
||||
status: bool = True
|
||||
|
||||
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 installed:
|
||||
status: bool = False
|
||||
|
||||
if self.option_for_reinstall:
|
||||
status: bool = True
|
||||
|
|
Loading…
Add table
Reference in a new issue