Bugfixed: download only path

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-10-14 21:49:53 +03:00
parent b08481328d
commit 6cbed7c3c5

View file

@ -109,7 +109,10 @@ class Slackbuilds:
location = SBoQueries(sbo).location()
url = f'{self.sbo_url}/{location}/{file}'
wget.download(self.tmp_slpkg, url)
if '--download-only' in self.flags:
wget.download(self.download_only, url)
else:
wget.download(self.tmp_slpkg, url)
if '--download-only' not in self.flags:
self.utils.untar_archive(self.tmp_slpkg, file, self.build_path)