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.
This commit is contained in:
jbu 2015-07-07 05:35:43 +02:00
parent cf1d2aaa2a
commit b28b004505

View File

@ -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