Updated for download

This commit is contained in:
Dimitris Zlatanidis 2023-05-30 22:44:02 +03:00
parent 235519f991
commit d4b8277bb1

View file

@ -70,15 +70,15 @@ class DownloadOnly(Configs):
package: str = self.data[name]['package']
mirror: str = self.data[name]['mirror']
location: str = self.data[name]['location']
self.urls[f'{mirror}{location}/{package}'] = self.tmp_slpkg
url: str = f'{mirror}{location}/{package}'
self.urls[name] = ((url,), self.tmp_slpkg)
def save_slackbuild_sources(self, name: str) -> None:
if self.os_arch == 'x86_64' and self.data[name]['download64']:
sources: list = self.data[name]['download64'].split()
sources: tuple = self.data[name]['download64'].split()
else:
sources: list = self.data[name]['download'].split()
for source in sources:
self.urls[source] = Path(self.build_path, name)
sources: tuple = self.data[name]['download'].split()
self.urls[name] = (sources, Path(self.build_path, name))
def copy_slackbuild_scripts(self, name: str) -> None:
repo_path_package: Path = Path(self.sbo_repo[self.repository], self.data[name]['location'], name)