Fixed build with the same source

This commit is contained in:
Dimitris Zlatanidis 2023-04-04 11:49:49 +03:00
parent 2e1afa58e0
commit 6e98cb6e1b
2 changed files with 5 additions and 11 deletions

View file

@ -1,6 +1,7 @@
4.7.3 - 03/04/2023
Fixed:
- Option -B for -u, update and -c, check-updates commands
- Build packages with the same sources like nvidia-driver and nvidia-kernel
4.7.2 - 02/04/2023
Updated:

View file

@ -61,6 +61,7 @@ class Slackbuilds(Configs):
self.flag_resolve_off: list = ['-o', '--resolve-off']
self.flag_jobs: list = ['-j', '--jobs']
self.flag_no_silent: list = ['-n', '--no-silent']
self.flag_parallel: list = ['-P', '--parallel']
self.slackbuilds: list = self.utils.apply_package_pattern(self.flags, self.slackbuilds)
@ -180,22 +181,14 @@ class Slackbuilds(Configs):
# Download the sources.
if sources:
down_urls = Downloader(self.build_path, sources_urls, self.flags)
down_urls.download()
for sbo, sbo_sources in sources.items():
down_urls = Downloader(Path(self.build_path, sbo), sbo_sources, self.flags)
down_urls.download()
print() # New line here.
self.move_sources(sources)
self.checksum_downloads()
def move_sources(self, sources: dict) -> None:
""" Move the sources into the folders for build. """
for sbo, source in sources.items():
for src in source:
source = Path(self.build_path, src.split('/')[-1])
path = Path(self.build_path, sbo)
shutil.move(source, path)
def checksum_downloads(self) -> None:
""" Checking the correct checksums. """
for sbo in self.install_order: