mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fixed build
This commit is contained in:
parent
a5c89abcc1
commit
d774f48d9a
4 changed files with 14 additions and 9 deletions
|
@ -3,6 +3,8 @@ Updated:
|
|||
- France manpage
|
||||
Fixed:
|
||||
- Choose dependencies for upgraded packages
|
||||
- Build packages with the same source name:
|
||||
(nvidia-driver and nvidia-kernel use the same source NVIDIA-Linux-x86_64-<VERSION>.run)
|
||||
|
||||
4.8.7 - 23/05/2023
|
||||
Fixed:
|
||||
|
|
|
@ -112,8 +112,9 @@ class Packages(Configs):
|
|||
package: str = self.data[pkg]['package']
|
||||
mirror: str = self.data[pkg]['mirror']
|
||||
location: str = self.data[pkg]['location']
|
||||
url: list = [f'{mirror}{location}/{package}']
|
||||
|
||||
packages[f'{mirror}{location}/{package}'] = self.tmp_slpkg
|
||||
packages[pkg] = (url, self.tmp_slpkg)
|
||||
|
||||
self.binary_packages.append(package)
|
||||
self.utils.remove_file_if_exists(self.tmp_slpkg, package)
|
||||
|
|
|
@ -36,16 +36,18 @@ class Downloader(Configs):
|
|||
processes: list = []
|
||||
|
||||
if self.parallel_downloads or self.option_for_parallel:
|
||||
for url, path in sources.items():
|
||||
proc = Process(target=self.tools, args=(url, path))
|
||||
processes.append(proc)
|
||||
proc.start()
|
||||
for urls, path in sources.values():
|
||||
for url in urls:
|
||||
proc = Process(target=self.tools, args=(url, path))
|
||||
processes.append(proc)
|
||||
proc.start()
|
||||
|
||||
for process in processes:
|
||||
process.join()
|
||||
else:
|
||||
for url, path in sources.items():
|
||||
self.tools(url, path)
|
||||
for urls, path in sources.values():
|
||||
for url in urls:
|
||||
self.tools(url, path)
|
||||
|
||||
def tools(self, url: str, path: Path) -> None:
|
||||
url_parse: str = urlparse(url).path
|
||||
|
|
|
@ -166,8 +166,8 @@ class Slackbuilds(Configs):
|
|||
sources: list = self.data[sbo]['download64'].split()
|
||||
else:
|
||||
sources: list = self.data[sbo]['download'].split()
|
||||
for source in sources:
|
||||
self.sources[source] = Path(self.build_path, sbo)
|
||||
|
||||
self.sources[sbo] = (sources, Path(self.build_path, sbo))
|
||||
|
||||
def download_the_sources(self) -> None:
|
||||
if self.sources:
|
||||
|
|
Loading…
Reference in a new issue