commit: 95cd9583d415dfeb07917d7b111502f0b991413d Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Sep 3 16:03:27 2021 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Sep 27 11:15:04 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=95cd9583
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 <AT> gentoo.org> bin/isolated-functions.sh | 1 + 1 file changed, 1 insertion(+) 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
