From 104daa16a69708c9b16fc59ac895f2932ea509d4 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 12 Jul 2009 01:07:46 +1000 Subject: makepkg: allow spaces in source file names The download command failed with sources that contained spaces. Remainder of fix for FS#15323. Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/makepkg.sh.in') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index b80ff5ab..8998e0da 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -323,17 +323,17 @@ download_file() { # replace %o by the temporary dlfile if it exists if echo "$dlcmd" | grep -q "%o" ; then - dlcmd=${dlcmd//\%o/$file.part} + dlcmd=${dlcmd//\%o/\"$file.part\"} dlfile="$file.part" fi # add the url, either in place of %u or at the end if echo "$dlcmd" | grep -q "%u" ; then - dlcmd=${dlcmd//\%u/$url} + dlcmd=${dlcmd//\%u/\"$url\"} else - dlcmd="$dlcmd $url" + dlcmd="$dlcmd \"$url\"" fi - $dlcmd || return $? + eval $dlcmd || return $? # rename the temporary download file to the final destination if [ "$dlfile" != "$file" ]; then -- cgit v1.2.3-70-g09d2