From b5c0ac90cc850a4995ba5134250b4cca8757cb40 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 5 Mar 2014 13:58:46 +0100 Subject: [PATCH] common/hooks/do-fetch: 00-distfiles: disable trap on ERR to fix autobuild issues. --- common/hooks/do-fetch/00-distfiles.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index 2dc3ba246db..0be4ab71e63 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -28,6 +28,9 @@ hook() { cd $srcdir || msg_error "$pkgver: cannot change dir to $srcdir!\n" + # Disable trap on ERR; the code is smart enough to report errors and abort. + trap - ERR + for f in ${distfiles}; do curfile=$(basename $f) distfile="$srcdir/$curfile"