1 |
commit: 95cd9583d415dfeb07917d7b111502f0b991413d |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 3 16:03:27 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 27 11:15:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=95cd9583 |
7 |
|
8 |
eend: Output QA notice when called without argument |
9 |
|
10 |
PMS says about eend: "Takes one fixed argument, which is a numeric |
11 |
return code, and an optional message in all subsequent arguments." |
12 |
|
13 |
Bug: https://bugs.gentoo.org/703520 |
14 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
15 |
|
16 |
bin/isolated-functions.sh | 1 + |
17 |
1 file changed, 1 insertion(+) |
18 |
|
19 |
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh |
20 |
index b495ae6c7..5630dcf4c 100644 |
21 |
--- a/bin/isolated-functions.sh |
22 |
+++ b/bin/isolated-functions.sh |
23 |
@@ -364,6 +364,7 @@ __eend() { |
24 |
} |
25 |
|
26 |
eend() { |
27 |
+ [[ -n $1 ]] || eqawarn "QA Notice: eend called without first argument" |
28 |
local retval=${1:-0} |
29 |
shift |