mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Added summary
This commit is contained in:
parent
16600c3191
commit
c0400c9fa7
2 changed files with 6 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from slpkg.downloader import Downloader
|
|
||||||
from slpkg.configs import Configs
|
from slpkg.configs import Configs
|
||||||
from slpkg.queries import SBoQueries
|
from slpkg.queries import SBoQueries
|
||||||
|
from slpkg.downloader import Downloader
|
||||||
from slpkg.views.views import ViewMessage
|
from slpkg.views.views import ViewMessage
|
||||||
from slpkg.models.models import session as Session
|
from slpkg.models.models import session as Session
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ class ViewMessage:
|
||||||
version = SBoQueries(sbo).version()
|
version = SBoQueries(sbo).version()
|
||||||
self.view_packages(sbo, version, mode='download')
|
self.view_packages(sbo, version, mode='download')
|
||||||
|
|
||||||
self.draw_bottom_line()
|
self.summary(slackbuilds, dependencies=[], option='download')
|
||||||
|
|
||||||
def remove_packages(self, packages: list) -> Any:
|
def remove_packages(self, packages: list) -> Any:
|
||||||
""" View remove packages. """
|
""" View remove packages. """
|
||||||
|
@ -248,6 +248,10 @@ class ViewMessage:
|
||||||
print(f'{self.grey}Total {remove} packages '
|
print(f'{self.grey}Total {remove} packages '
|
||||||
f'will be removed.{self.endc}')
|
f'will be removed.{self.endc}')
|
||||||
|
|
||||||
|
elif option == 'download':
|
||||||
|
print(f'{self.grey}{len(slackbuilds)} packages '
|
||||||
|
f'will be downloaded in {self.configs.download_only} folder.{self.endc}')
|
||||||
|
|
||||||
def logs_packages(self, dependencies: list):
|
def logs_packages(self, dependencies: list):
|
||||||
""" View the logging packages. """
|
""" View the logging packages. """
|
||||||
print('The following logs will be removed:\n')
|
print('The following logs will be removed:\n')
|
||||||
|
|
Loading…
Add table
Reference in a new issue