mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Removed comments
This commit is contained in:
parent
860c072f0a
commit
396292595c
1 changed files with 0 additions and 7 deletions
|
@ -42,7 +42,6 @@ class ViewMessage(Configs):
|
|||
['-y', '--yes'], flags)
|
||||
|
||||
def build_packages(self, slackbuilds: list, dependencies: list) -> None:
|
||||
""" View packages for build only. """
|
||||
mode = 'build'
|
||||
self.ascii.draw_package_title_box('The following packages will be build:', 'slpkg build packages')
|
||||
|
||||
|
@ -59,7 +58,6 @@ class ViewMessage(Configs):
|
|||
self.summary(slackbuilds, dependencies, option=mode)
|
||||
|
||||
def install_upgrade_packages(self, packages: list, dependencies: list, mode: str) -> None:
|
||||
""" View packages for install. """
|
||||
title: str = 'slpkg install packages'
|
||||
if mode == 'upgrade':
|
||||
title: str = 'slpkg upgrade packages'
|
||||
|
@ -78,7 +76,6 @@ class ViewMessage(Configs):
|
|||
self.summary(packages, dependencies, option=mode)
|
||||
|
||||
def download_packages(self, packages: list, directory: Path) -> None:
|
||||
""" View downloaded packages. """
|
||||
mode = 'download'
|
||||
self.download_only: Path = directory
|
||||
self.ascii.draw_package_title_box('The following packages will be downloaded:',
|
||||
|
@ -90,7 +87,6 @@ class ViewMessage(Configs):
|
|||
self.summary(packages, dependencies=[], option=mode)
|
||||
|
||||
def remove_packages(self, packages: list, dependencies: list) -> Any:
|
||||
""" View remove packages. """
|
||||
mode = 'remove'
|
||||
self.ascii.draw_package_title_box('The following packages will be removed:',
|
||||
'slpkg remove packages')
|
||||
|
@ -167,7 +163,6 @@ class ViewMessage(Configs):
|
|||
self.ascii.draw_view_package(package, version, size, self.red, repository)
|
||||
|
||||
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}')
|
||||
|
@ -242,11 +237,9 @@ class ViewMessage(Configs):
|
|||
return f'{package}-{version}'
|
||||
|
||||
def view_skipping_packages(self, package: str, version: str) -> None:
|
||||
""" Print the skipping packages. """
|
||||
print(f'{self.yellow}Skipping{self.endc}: {package}-{version} {self.red}(already installed){self.endc}')
|
||||
|
||||
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