From 11abf70a7746c8884e6fb222eafcf687c289f928 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 23 May 2022 11:54:29 +0200 Subject: setup-alpine: cleanup: remove use of NOCOMMIT this was (presumabely) originally intended for testing. We use MOCK instead nowdays. --- libalpine.sh.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libalpine.sh.in') diff --git a/libalpine.sh.in b/libalpine.sh.in index 80193dd..2fa85d9 100644 --- a/libalpine.sh.in +++ b/libalpine.sh.in @@ -60,13 +60,13 @@ init_tmpdir() { } pkg_inst() { - eecho "WARNING: pkg_inst is deprecated. Use 'apk add --quiet' in script" - [ -z "$NOCOMMIT" ] && apk add --quiet $* + eecho "WARNING: pkg_inst is deprecated. Use '\$MOCK apk add --quiet' in script" + $MOCK apk add --quiet $* } pkg_deinst() { - eecho "WARNING: pkg_deinst is deprecated. Use 'apk del --quiet' in script" - [ -z "$NOCOMMIT" ] && apk del --quiet $* + eecho "WARNING: pkg_deinst is deprecated. Use '\$MOCK apk del --quiet' in script" + $MOCK apk del --quiet $* } default_read() { @@ -78,7 +78,7 @@ default_read() { cfg_add() { - [ -z "$NOCOMMIT" ] && lbu_add "$@" + $MOCK lbu_add "$@" } # return true if given value is Y, y, Yes, yes YES etc -- cgit v1.2.3