Fixed for downloading

This commit is contained in:
Dimitris Zlatanidis 2023-04-28 12:37:34 +03:00
parent f6bc14363d
commit 093b57bbae
2 changed files with 4 additions and 6 deletions

View file

@ -6,6 +6,7 @@ Added:
- Disable or enable the spinning bar - Disable or enable the spinning bar
Fixed: Fixed:
- Slackware patches repository tag - Slackware patches repository tag
- For skip to download sources if the package is installed (Thanks to kingbeowulf LQ63)
4.8.1 - 21/04/2023 4.8.1 - 21/04/2023
Updated: Updated:

View file

@ -166,7 +166,6 @@ class Slackbuilds(Configs):
sources: dict = {} sources: dict = {}
for sbo in self.install_order: for sbo in self.install_order:
if self.continue_build_or_install(sbo): if self.continue_build_or_install(sbo):
build_path: Path = Path(self.build_path, sbo) build_path: Path = Path(self.build_path, sbo)
@ -190,15 +189,13 @@ class Slackbuilds(Configs):
else: else:
sources[sbo] = self.data[sbo][3].split() sources[sbo] = self.data[sbo][3].split()
# Download the sources.
if sources: if sources:
for sbo, sbo_sources in sources.items(): for pkg, sbo_sources in sources.items():
down_urls = Downloader(Path(self.build_path, sbo), sbo_sources, self.flags) down_urls = Downloader(Path(self.build_path, pkg), sbo_sources, self.flags)
down_urls.download() down_urls.download()
print() # New line here.
self.checksum_downloads() self.checksum_downloads()
print() # New line here.
def checksum_downloads(self) -> None: def checksum_downloads(self) -> None:
""" Checking the correct checksums. """ """ Checking the correct checksums. """