diff --git a/ChangeLog.txt b/ChangeLog.txt index 00195883..04cc2e2c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +4.4.7 - 07/01/2023 +Added: +- Finished report to download only + 4.4.6 - 06/01/2023 Updated: - Improve speed for dependees diff --git a/slpkg/download_only.py b/slpkg/download_only.py index b6c6d91c..15740d29 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -1,8 +1,11 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- +import time + from slpkg.configs import Configs from slpkg.queries import SBoQueries +from slpkg.utilities import Utilities from slpkg.downloader import Downloader from slpkg.views.views import ViewMessage from slpkg.models.models import session as Session @@ -15,6 +18,7 @@ class Download: self.flags: list = flags self.configs = Configs self.session = Session + self.utils = Utilities() def packages(self, slackbuilds: list): """ Download the package only. """ @@ -22,6 +26,7 @@ class Download: view.download_packages(slackbuilds) view.question() + start = time.time() for sbo in slackbuilds: file = f'{sbo}{self.configs.sbo_tar_suffix}' location = SBoQueries(sbo).location() @@ -34,3 +39,6 @@ class Download: for source in sources: down_source = Downloader(self.configs.download_only, source) down_source.download() + + elapsed_time = time.time() - start + self.utils.finished_time(elapsed_time)