From 6cbed7c3c5bb3e1e96110f762a3975576cca5eec Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 14 Oct 2022 21:49:53 +0300 Subject: [PATCH] Bugfixed: download only path Signed-off-by: Dimitris Zlatanidis --- slpkg/slackbuild.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index c1c542bf..b6edf34e 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -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)