diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-23 11:54:29 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-23 11:54:29 +0200 |
commit | 11abf70a7746c8884e6fb222eafcf687c289f928 (patch) | |
tree | b60cd3e4207ec0a109a73789a87a676ce62811d0 /libalpine.sh.in | |
parent | a93776085a4f67c1b3fc059d161a4e86956542aa (diff) | |
download | alpine-conf-11abf70a7746c8884e6fb222eafcf687c289f928.zip |
setup-alpine: cleanup: remove use of NOCOMMIT
this was (presumabely) originally intended for testing. We use MOCK
instead nowdays.
Diffstat (limited to 'libalpine.sh.in')
-rw-r--r-- | libalpine.sh.in | 10 |
1 files changed, 5 insertions, 5 deletions
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 |