[pacman-dev] [PATCHv3 3/3] makepkg: Return non-zero when install_package() fails
Pierre Neidhardt
ambrevar at gmail.com
Mon Mar 3 14:29:56 EST 2014
Signed-off-by: Pierre Neidhardt <ambrevar at gmail.com>
---
scripts/makepkg.sh.in | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index aa02fa6..be1da7d 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2100,7 +2100,7 @@ install_package() {
if ! run_pacman -U "${pkglist[@]}"; then
warning "$(gettext "Failed to install built package(s).")"
- return 0
+ return 1
fi
}
@@ -3095,7 +3095,6 @@ fullver=$(get_full_version)
msg "$(gettext "Finished making: %s")" "$pkgbase $fullver ($(date))"
install_package
-
-exit 0 #E_OK
+exit $?
# vim: set noet:
--
1.9.0
More information about the pacman-dev
mailing list