mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Updated for coding style
This commit is contained in:
parent
85dcec564a
commit
6494746317
1 changed files with 0 additions and 5 deletions
|
@ -76,9 +76,7 @@ class Packages(Configs):
|
||||||
|
|
||||||
def creating_dependencies_list(self) -> None:
|
def creating_dependencies_list(self) -> None:
|
||||||
if not self.option_for_resolve_off:
|
if not self.option_for_resolve_off:
|
||||||
|
|
||||||
for pkg in self.packages:
|
for pkg in self.packages:
|
||||||
|
|
||||||
# Skip installed package when the option --skip-installed is applied.
|
# Skip installed package when the option --skip-installed is applied.
|
||||||
if self.option_for_skip_installed and self.utils.is_package_installed(pkg):
|
if self.option_for_skip_installed and self.utils.is_package_installed(pkg):
|
||||||
continue
|
continue
|
||||||
|
@ -151,7 +149,6 @@ class Packages(Configs):
|
||||||
def install_packages(self) -> None:
|
def install_packages(self) -> None:
|
||||||
""" Install the packages. """
|
""" Install the packages. """
|
||||||
for package in self.binary_packages:
|
for package in self.binary_packages:
|
||||||
|
|
||||||
message: str = f'{self.cyan}Installing{self.endc}'
|
message: str = f'{self.cyan}Installing{self.endc}'
|
||||||
slack_command: str = self.installpkg
|
slack_command: str = self.installpkg
|
||||||
|
|
||||||
|
@ -212,7 +209,6 @@ class Packages(Configs):
|
||||||
|
|
||||||
for package in dependencies:
|
for package in dependencies:
|
||||||
status: bool = True
|
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}'
|
||||||
installed: str = self.utils.is_package_installed(package)
|
installed: str = self.utils.is_package_installed(package)
|
||||||
|
@ -228,7 +224,6 @@ class Packages(Configs):
|
||||||
text: str = f'There are {len(choices)} dependencies:'
|
text: str = f'There are {len(choices)} dependencies:'
|
||||||
code, tags = self.dialogbox.checklist(text, dependencies, title, height,
|
code, tags = self.dialogbox.checklist(text, dependencies, title, height,
|
||||||
width, list_height, choices)
|
width, list_height, choices)
|
||||||
|
|
||||||
if not code:
|
if not code:
|
||||||
return dependencies
|
return dependencies
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue