diff --git a/slpkg/download_only.py b/slpkg/download_only.py index 21435b07..b6c6d91c 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -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 diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 16c6b31e..d8da804b 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -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')