mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +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. """
|
||||
mode = 'download'
|
||||
self.download_only: Path = directory
|
||||
|
||||
self.ascii.draw_package_title_box('The following packages will be downloaded:',
|
||||
'slpkg download packages')
|
||||
|
||||
|
@ -147,7 +146,6 @@ class ViewMessage(Configs):
|
|||
|
||||
for pkg in packages:
|
||||
pkgs.append(pkg)
|
||||
|
||||
requires = self.session.query(
|
||||
LogsDependencies.requires).filter(
|
||||
LogsDependencies.name == pkg).first()
|
||||
|
@ -205,7 +203,6 @@ class ViewMessage(Configs):
|
|||
text: str = f'There are {len(choices)} dependencies:'
|
||||
code, tags = self.dialogbox.checklist(text, dependencies, title, height,
|
||||
width, list_height, choices)
|
||||
|
||||
if not code:
|
||||
return dependencies
|
||||
|
||||
|
@ -276,7 +273,6 @@ class ViewMessage(Configs):
|
|||
def logs_packages(self, dependencies: list) -> None:
|
||||
""" View the logging packages. """
|
||||
print('The following logs will be removed:\n')
|
||||
|
||||
for dep in dependencies:
|
||||
print(f'{self.yellow}{dep[0]}{self.endc}')
|
||||
self.ascii.draw_log_package(dep[1])
|
||||
|
@ -285,7 +281,6 @@ class ViewMessage(Configs):
|
|||
|
||||
def question(self) -> None:
|
||||
""" Manage to proceed. """
|
||||
|
||||
if not self.option_for_yes and self.ask_question:
|
||||
answer: str = input('\nDo you want to continue? [y/N] ')
|
||||
if answer not in ['Y', 'y']:
|
||||
|
|
Loading…
Reference in a new issue