[arch-projects] [devtools] [PATCH 2/2] common: propagate error through trap_exit

Joel Teichroeb joel at teichroeb.net
Mon Jun 2 00:32:37 EDT 2014


I submitted a patch for this two weeks ago

https://mailman.archlinux.org/pipermail/arch-projects/2014-May/004158.html


On Sun, Jun 1, 2014 at 9:16 PM, Dave Reisner <dreisner at archlinux.org> wrote:

> Fixes a breakage introduced in 6db31cc16a80442 which leads to errors
> being masked from makechrootpkg.
>
> https://bugs.archlinux.org/task/40620
> ---
>  lib/common.sh | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/common.sh b/lib/common.sh
> index e4bb91f..d9d7676 100644
> --- a/lib/common.sh
> +++ b/lib/common.sh
> @@ -79,8 +79,9 @@ trap_abort() {
>  }
>
>  trap_exit() {
> +       local r=$?
>         trap - EXIT INT QUIT TERM HUP
> -       cleanup
> +       cleanup $r
>  }
>
>  die() {
> --
> 1.9.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20140601/fe42659b/attachment-0001.html>


More information about the arch-projects mailing list