From b28b0045058faa73e79c0817a497e013f4163547 Mon Sep 17 00:00:00 2001 From: jbu Date: Tue, 7 Jul 2015 05:35:43 +0200 Subject: [PATCH] purge_distfiles.sh: ignore msg_error() When sourcing templates to get $checksum there are templates calling msg_error(). This is not relevant for this function, thus define a local dummy msg_error() to ignore these cases. --- common/xbps-src/shutils/purge_distfiles.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/xbps-src/shutils/purge_distfiles.sh b/common/xbps-src/shutils/purge_distfiles.sh index 7f75617996f..215b6ce7bb2 100755 --- a/common/xbps-src/shutils/purge_distfiles.sh +++ b/common/xbps-src/shutils/purge_distfiles.sh @@ -4,6 +4,10 @@ purge_distfiles() { + # Ignore msg_error calls when sourcing templates + msg_error() { + : + } if [ -z "$XBPS_SRCDISTDIR" ]; then msg_error "The variable \$XBPS_SRCDISTDIR is not set." exit 1