makepkg: use array instead of string
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
parent
8d26df5ee5
commit
bc311a24ce
1 changed files with 3 additions and 3 deletions
|
@ -1260,7 +1260,7 @@ create_package() {
|
||||||
|
|
||||||
write_pkginfo $nameofpkg > .PKGINFO
|
write_pkginfo $nameofpkg > .PKGINFO
|
||||||
|
|
||||||
local comp_files=".PKGINFO"
|
local comp_files=('.PKGINFO')
|
||||||
|
|
||||||
# check for changelog/install files
|
# check for changelog/install files
|
||||||
for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
|
for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
|
||||||
|
@ -1270,7 +1270,7 @@ create_package() {
|
||||||
msg2 "$(gettext "Adding %s file...")" "$orig"
|
msg2 "$(gettext "Adding %s file...")" "$orig"
|
||||||
cp "$startdir/${!orig}" "$dest"
|
cp "$startdir/${!orig}" "$dest"
|
||||||
chmod 644 "$dest"
|
chmod 644 "$dest"
|
||||||
comp_files+=" $dest"
|
comp_files+=("$dest")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -1292,7 +1292,7 @@ create_package() {
|
||||||
# bsdtar's gzip compression always saves the time stamp, making one
|
# bsdtar's gzip compression always saves the time stamp, making one
|
||||||
# archive created using the same command line distinct from another.
|
# archive created using the same command line distinct from another.
|
||||||
# Disable bsdtar compression and use gzip -n for now.
|
# Disable bsdtar compression and use gzip -n for now.
|
||||||
bsdtar -cf - $comp_files * |
|
bsdtar -cf - "${comp_files[@]}" * |
|
||||||
case "$PKGEXT" in
|
case "$PKGEXT" in
|
||||||
*tar.gz) ${COMPRESSGZ[@]:-gzip -c -f -n} ;;
|
*tar.gz) ${COMPRESSGZ[@]:-gzip -c -f -n} ;;
|
||||||
*tar.bz2) ${COMPRESSBZ2[@]:-bzip2 -c -f} ;;
|
*tar.bz2) ${COMPRESSBZ2[@]:-bzip2 -c -f} ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue