makepkg: return E_PKGBUILD_ERROR for nonexistent PKGBUILD
This is not really an error with a "user function". Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
5d2f7ee6c3
commit
ce040514c4
1 changed files with 1 additions and 1 deletions
|
@ -1222,7 +1222,7 @@ unset "${!sha384sums_@}" "${!sha512sums_@}"
|
|||
BUILDFILE=${BUILDFILE:-$BUILDSCRIPT}
|
||||
if [[ ! -f $BUILDFILE ]]; then
|
||||
error "$(gettext "%s does not exist.")" "$BUILDFILE"
|
||||
exit $E_USER_FUNCTION_FAILED
|
||||
exit $E_PKGBUILD_ERROR
|
||||
|
||||
else
|
||||
if [[ $(<"$BUILDFILE") = *$'\r'* ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue