From ce040514c4ed79f3053a104242cde90af471041a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 10 Jan 2019 00:58:44 -0500 Subject: makepkg: return E_PKGBUILD_ERROR for nonexistent PKGBUILD This is not really an error with a "user function". Signed-off-by: Eli Schwartz Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 39ccd608..c81dc801 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 -- cgit v1.2.3-24-g4f1b