Added finished report

This commit is contained in:
Dimitris Zlatanidis 2023-01-06 23:25:14 +02:00
parent 5b94483734
commit e135f7da24
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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)