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
f0b87f9f2d
commit
b947a24b6e
1 changed files with 0 additions and 5 deletions
|
@ -131,7 +131,6 @@ class ViewMessage(Configs):
|
||||||
""" View downloaded packages. """
|
""" View downloaded packages. """
|
||||||
mode = 'download'
|
mode = 'download'
|
||||||
self.download_only: Path = directory
|
self.download_only: Path = directory
|
||||||
|
|
||||||
self.ascii.draw_package_title_box('The following packages will be downloaded:',
|
self.ascii.draw_package_title_box('The following packages will be downloaded:',
|
||||||
'slpkg download packages')
|
'slpkg download packages')
|
||||||
|
|
||||||
|
@ -147,7 +146,6 @@ class ViewMessage(Configs):
|
||||||
|
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
pkgs.append(pkg)
|
pkgs.append(pkg)
|
||||||
|
|
||||||
requires = self.session.query(
|
requires = self.session.query(
|
||||||
LogsDependencies.requires).filter(
|
LogsDependencies.requires).filter(
|
||||||
LogsDependencies.name == pkg).first()
|
LogsDependencies.name == pkg).first()
|
||||||
|
@ -205,7 +203,6 @@ class ViewMessage(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
|
||||||
|
|
||||||
|
@ -276,7 +273,6 @@ class ViewMessage(Configs):
|
||||||
def logs_packages(self, dependencies: list) -> None:
|
def logs_packages(self, dependencies: list) -> None:
|
||||||
""" View the logging packages. """
|
""" View the logging packages. """
|
||||||
print('The following logs will be removed:\n')
|
print('The following logs will be removed:\n')
|
||||||
|
|
||||||
for dep in dependencies:
|
for dep in dependencies:
|
||||||
print(f'{self.yellow}{dep[0]}{self.endc}')
|
print(f'{self.yellow}{dep[0]}{self.endc}')
|
||||||
self.ascii.draw_log_package(dep[1])
|
self.ascii.draw_log_package(dep[1])
|
||||||
|
@ -285,7 +281,6 @@ class ViewMessage(Configs):
|
||||||
|
|
||||||
def question(self) -> None:
|
def question(self) -> None:
|
||||||
""" Manage to proceed. """
|
""" Manage to proceed. """
|
||||||
|
|
||||||
if not self.option_for_yes and self.ask_question:
|
if not self.option_for_yes and self.ask_question:
|
||||||
answer: str = input('\nDo you want to continue? [y/N] ')
|
answer: str = input('\nDo you want to continue? [y/N] ')
|
||||||
if answer not in ['Y', 'y']:
|
if answer not in ['Y', 'y']:
|
||||||
|
|
Loading…
Reference in a new issue