Added summary

This commit is contained in:
Dimitris Zlatanidis 2023-01-05 16:54:10 +02:00
parent 16600c3191
commit c0400c9fa7
2 changed files with 6 additions and 2 deletions

View file

@ -1,9 +1,9 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from slpkg.downloader import Downloader
from slpkg.configs import Configs
from slpkg.queries import SBoQueries
from slpkg.downloader import Downloader
from slpkg.views.views import ViewMessage
from slpkg.models.models import session as Session

View file

@ -141,7 +141,7 @@ class ViewMessage:
version = SBoQueries(sbo).version()
self.view_packages(sbo, version, mode='download')
self.draw_bottom_line()
self.summary(slackbuilds, dependencies=[], option='download')
def remove_packages(self, packages: list) -> Any:
""" View remove packages. """
@ -248,6 +248,10 @@ class ViewMessage:
print(f'{self.grey}Total {remove} packages '
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):
""" View the logging packages. """
print('The following logs will be removed:\n')