summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-01-10 00:58:44 -0500
committerAllan McRae <allan@archlinux.org>2019-01-10 17:07:23 +1000
commitce040514c4ed79f3053a104242cde90af471041a (patch)
tree079ab75a6577758179c646da4d320bd868541eac
parent5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84 (diff)
downloadpacman-ce040514c4ed79f3053a104242cde90af471041a.tar.xz
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>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
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