mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Added finished report
This commit is contained in:
parent
5b94483734
commit
e135f7da24
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
4.4.7 - 07/01/2023
|
||||||
|
Added:
|
||||||
|
- Finished report to download only
|
||||||
|
|
||||||
4.4.6 - 06/01/2023
|
4.4.6 - 06/01/2023
|
||||||
Updated:
|
Updated:
|
||||||
- Improve speed for dependees
|
- Improve speed for dependees
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
from slpkg.configs import Configs
|
from slpkg.configs import Configs
|
||||||
from slpkg.queries import SBoQueries
|
from slpkg.queries import SBoQueries
|
||||||
|
from slpkg.utilities import Utilities
|
||||||
from slpkg.downloader import Downloader
|
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
|
||||||
|
@ -15,6 +18,7 @@ class Download:
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.configs = Configs
|
self.configs = Configs
|
||||||
self.session = Session
|
self.session = Session
|
||||||
|
self.utils = Utilities()
|
||||||
|
|
||||||
def packages(self, slackbuilds: list):
|
def packages(self, slackbuilds: list):
|
||||||
""" Download the package only. """
|
""" Download the package only. """
|
||||||
|
@ -22,6 +26,7 @@ class Download:
|
||||||
view.download_packages(slackbuilds)
|
view.download_packages(slackbuilds)
|
||||||
view.question()
|
view.question()
|
||||||
|
|
||||||
|
start = time.time()
|
||||||
for sbo in slackbuilds:
|
for sbo in slackbuilds:
|
||||||
file = f'{sbo}{self.configs.sbo_tar_suffix}'
|
file = f'{sbo}{self.configs.sbo_tar_suffix}'
|
||||||
location = SBoQueries(sbo).location()
|
location = SBoQueries(sbo).location()
|
||||||
|
@ -34,3 +39,6 @@ class Download:
|
||||||
for source in sources:
|
for source in sources:
|
||||||
down_source = Downloader(self.configs.download_only, source)
|
down_source = Downloader(self.configs.download_only, source)
|
||||||
down_source.download()
|
down_source.download()
|
||||||
|
|
||||||
|
elapsed_time = time.time() - start
|
||||||
|
self.utils.finished_time(elapsed_time)
|
||||||
|
|
Loading…
Add table
Reference in a new issue