mirror of
https://github.com/moparisthebest/pacman
synced 2024-10-31 15:45:03 -04:00
makepkg: check for var existance before file existance
This prevents makepkg from aborting with 'file not found' when changelog= or install= are declared in a PKGBUILD, but empty. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
parent
3905ada993
commit
0f69e2ec0b
@ -1539,7 +1539,7 @@ check_sanity() {
|
||||
while read -r file; do
|
||||
# evaluate any bash variables used
|
||||
eval file=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$file")\"
|
||||
if [[ ! -f $file ]]; then
|
||||
if [[ $file && ! -f $file ]]; then
|
||||
error "$(gettext "%s file (%s) does not exist.")" "$i" "$file"
|
||||
ret=1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user