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:
parent
cf1d2aaa2a
commit
b28b004505
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user