makepkg: Add missing quotes for the source array.
Now makepkg can handle filenames with whitespaces in the source array. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
b8a66d6859
commit
b9445c12cf
1 changed files with 4 additions and 4 deletions
|
@ -428,7 +428,7 @@ download_sources() {
|
||||||
pushd "$SRCDEST" &>/dev/null
|
pushd "$SRCDEST" &>/dev/null
|
||||||
|
|
||||||
local netfile
|
local netfile
|
||||||
for netfile in ${source[@]}; do
|
for netfile in "${source[@]}"; do
|
||||||
local file=$(strip_url "$netfile")
|
local file=$(strip_url "$netfile")
|
||||||
if [ -f "$startdir/$file" ]; then
|
if [ -f "$startdir/$file" ]; then
|
||||||
msg2 "$(gettext "Found %s in build dir")" "$file"
|
msg2 "$(gettext "Found %s in build dir")" "$file"
|
||||||
|
@ -501,7 +501,7 @@ generate_checksums() {
|
||||||
done
|
done
|
||||||
|
|
||||||
local netfile
|
local netfile
|
||||||
for netfile in ${source[@]}; do
|
for netfile in "${source[@]}"; do
|
||||||
local file="$(strip_url "$netfile")"
|
local file="$(strip_url "$netfile")"
|
||||||
|
|
||||||
if [ ! -f "$file" ] ; then
|
if [ ! -f "$file" ] ; then
|
||||||
|
@ -956,9 +956,9 @@ create_srcpackage() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local netfile
|
local netfile
|
||||||
for netfile in ${source[@]}; do
|
for netfile in "${source[@]}"; do
|
||||||
local file=$(strip_url "$netfile")
|
local file=$(strip_url "$netfile")
|
||||||
if [ -f $netfile ]; then
|
if [ -f "$netfile" ]; then
|
||||||
msg2 "$(gettext "Adding %s...")" "$netfile"
|
msg2 "$(gettext "Adding %s...")" "$netfile"
|
||||||
ln -s $netfile ${srclinks}/${pkgname}
|
ln -s $netfile ${srclinks}/${pkgname}
|
||||||
elif [ "$SOURCEONLY" = "2" -a -f "$SRCDEST/$file" ]; then
|
elif [ "$SOURCEONLY" = "2" -a -f "$SRCDEST/$file" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue