aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-09-03 18:03:27 +0200
committerUlrich Müller <ulm@gentoo.org>2021-09-27 13:15:04 +0200
commit95cd9583d415dfeb07917d7b111502f0b991413d (patch)
tree703b5cdbb4ce80ed0fb7b7517e08b14f3765271b
parentPrepare for 3.0.24 release (diff)
downloadportage-95cd9583.tar.gz
portage-95cd9583.tar.bz2
portage-95cd9583.zip
eend: Output QA notice when called without argument
PMS says about eend: "Takes one fixed argument, which is a numeric return code, and an optional message in all subsequent arguments." Bug: https://bugs.gentoo.org/703520 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--bin/isolated-functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index b495ae6c7..5630dcf4c 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -364,6 +364,7 @@ __eend() {
}
eend() {
+ [[ -n $1 ]] || eqawarn "QA Notice: eend called without first argument"
local retval=${1:-0}
shift