From 28ef51b8178c3583147c267afc649a5d2a2bb3ee Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 7 May 2022 11:56:28 +0200 Subject: [PATCH] Fix spurious quotes in download code $WGETPARM contains several switches separated by blank spaces. If quoted in the wget command, it appears as an url with spaces, not as switches. --- common/libs/func_download_pkgs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/libs/func_download_pkgs b/common/libs/func_download_pkgs index 5cd4e52..09ec7e7 100644 --- a/common/libs/func_download_pkgs +++ b/common/libs/func_download_pkgs @@ -59,7 +59,7 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if else echo "${BOLD}${YELLOW}$FILE: not found in ${BUILDDIR}/sources${OFF}" fi - if ! wget "$URL" "$WGETPARAM"; then + if ! wget "$URL" $WGETPARAM; then gs_wrt_message "$FILE not found on any server..SKIPPING" continue fi @@ -82,7 +82,7 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if # Force storage in SRC_ARCHIVE fromARCHIVE=0; # Try to retrieve again the file. - if ! wget "$URL" "$WGETPARAM"; then + if ! wget "$URL" $WGETPARAM; then gs_wrt_message "$FILE not found on the server... SKIPPING" continue fi