mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated for typing
This commit is contained in:
parent
79da1b37ac
commit
2f0b136954
1 changed files with 4 additions and 4 deletions
|
@ -166,7 +166,7 @@ class Slackbuilds(Configs):
|
|||
|
||||
sources_urls += SBoQueries(sbo).sources()
|
||||
|
||||
urls = sources_urls
|
||||
urls: list = sources_urls
|
||||
# Combine sbos and sources.
|
||||
if not self.ponce_repo:
|
||||
urls.extend(sbos_urls)
|
||||
|
@ -181,7 +181,7 @@ class Slackbuilds(Configs):
|
|||
self.move_sources(sources_urls)
|
||||
self.checksum_downloads()
|
||||
|
||||
def extract_sbos(self):
|
||||
def extract_sbos(self) -> None:
|
||||
""" Untar all the sbo.tar.gz files. """
|
||||
if not self.ponce_repo:
|
||||
for sbo in self.install_order:
|
||||
|
@ -189,14 +189,14 @@ class Slackbuilds(Configs):
|
|||
self.utils.untar_archive(self.build_path, file)
|
||||
self.patch_sbo_tag(sbo)
|
||||
|
||||
def move_sources(self, sources_urls):
|
||||
def move_sources(self, sources_urls: list) -> None:
|
||||
""" Move the sources into the folders for build. """
|
||||
for sbo, src in zip(self.install_order, sources_urls):
|
||||
source = Path(self.build_path, src.split('/')[-1])
|
||||
path = Path(self.build_path, sbo)
|
||||
shutil.move(source, path)
|
||||
|
||||
def checksum_downloads(self):
|
||||
def checksum_downloads(self) -> None:
|
||||
""" Checking the correct checksums. """
|
||||
for sbo in self.install_order:
|
||||
|
||||
|
|
Loading…
Reference in a new issue