1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

makepkg: fix issue with filenames with spaces and noextract

Specifying a filename with spaces in a PKGBUILDs noextract array fails
due to a lack of quoting.

Fixes FS#25100.

Reported-by: Thomas Weißschuh <thomas_weissschuh@lavabit.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2011-07-17 00:09:19 +10:00 committed by Dan McGee
parent e378170c25
commit 297cd7897b

View File

@ -674,7 +674,7 @@ extract_sources() {
local netfile
for netfile in "${source[@]}"; do
local file=$(get_filename "$netfile")
if in_array "$file" ${noextract[@]}; then
if in_array "$file" "${noextract[@]}"; then
#skip source files in the noextract=() array
# these are marked explicitly to NOT be extracted
continue