summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-07-12 01:07:46 +1000
committerAllan McRae <allan@archlinux.org>2009-07-12 01:17:25 +1000
commit104daa16a69708c9b16fc59ac895f2932ea509d4 (patch)
treeaa4f0ee3d337506d379f7dc750bd08efb130c88d /scripts
parentcaa0f2205a62344c4df6e286e14a0d89cd1d10f2 (diff)
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 <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in8
1 files changed, 4 insertions, 4 deletions
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