[arch-projects] [devtools] [PATCH 3/4] makechrootpkg: don't run namcap if makepkg fails

Dave Reisner dreisner at archlinux.org
Thu Oct 23 20:02:18 UTC 2014


Fixes a regression introduced by 285a4e94cd, which made namcap a
"compile time" option.
---
 makechrootpkg.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index 1fbd3b4..c8cb169 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -265,7 +265,7 @@ EOF
 	# This is a little gross, but this way the script is recreated every time in the
 	# working copy
 	{
-		printf $'#!/bin/bash\n%s\n_chrootbuild %q %q\n' "$(declare -f _chrootbuild)" \
+		printf $'#!/bin/bash\n%s\n_chrootbuild %q %q || exit\n' "$(declare -f _chrootbuild)" \
 			"$makepkg_args" "$run_namcap"
 		if $run_namcap; then
 			cat <<'EOF'
-- 
2.1.2


More information about the arch-projects mailing list