makepkg: fix the use of spaces in the localname:: component of sources

Broken via refactoring in commit aa6fe1160b
but for obvious reasons only one person in the last 9 years has ever
actually tried to do this. Still, it's technically correct to allow it.

Fixes FS#70254

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2021-04-05 17:13:12 -04:00 committed by Allan McRae
parent 9060058393
commit 8aa2a48fc3

View file

@ -58,7 +58,7 @@ get_filename() {
# if a filename is specified, use it # if a filename is specified, use it
if [[ $netfile = *::* ]]; then if [[ $netfile = *::* ]]; then
printf "%s\n" ${netfile%%::*} printf "%s\n" "${netfile%%::*}"
return return
fi fi