From 6a72ff4cae337278dadceb7d18e7ef1c0d43ff18 Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Mon, 31 Jan 2022 20:59:53 +0100 Subject: [PATCH] MEN-5410: URL encode '+' also on pool downloads Now the packages from tags will also contain this character. Same fix as in ed5da386. Changelog: None Signed-off-by: Lluis Campos --- modules/deb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/deb.sh b/modules/deb.sh index 28572f6..229eee3 100644 --- a/modules/deb.sh +++ b/modules/deb.sh @@ -82,7 +82,8 @@ function deb_from_repo_pool_get() { local -r deb_package_path="pool/${component}/${initial}/${package}/${package}_${version}_${architecture}.deb" local -r filename=$(basename $deb_package_path) - run_and_log_cmd_noexit "wget -Nq ${repo_url}/${deb_package_path} -P ${download_dir}" + local -r deb_package_url=$(echo ${repo_url}/${deb_package_path} | sed 's/+/%2B/g') + run_and_log_cmd_noexit "wget -Nq ${deb_package_url} -P ${download_dir}" local exit_code=$? rm -f /tmp/Packages