From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: bin/, /
Date: Sun, 15 Dec 2024 07:58:04 +0000 (UTC) [thread overview]
Message-ID: <1734214733.9f877651bfd0940cdf271456425edbbec7fc60bd.ulm@gentoo> (raw)
commit: 9f877651bfd0940cdf271456425edbbec7fc60bd
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 14 17:31:39 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 22:18:53 2024 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=9f877651
eend: Make missing argument an error
PMS says about eend: "Takes one fixed argument, which is a numeric
return code, and an optional message in all subsequent arguments."
A QA notice was in place since commit 95cd9583d415 in 2021.
Bug: https://bugs.gentoo.org/703520
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
NEWS | 2 ++
bin/isolated-functions.sh | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/NEWS b/NEWS
index da1f8353b3..c4b2ee5a54 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,8 @@ Bug fixes:
* save-ebuild-env.sh: Add functions from newer EAPIs to filter list
+* eend: Missing argument is now an error (bug #703520).
+
portage-3.0.66.1 (2024-09-18)
--------------
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 06be030fb3..cbd93fce97 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
source "${PORTAGE_BIN_PATH}/eapi.sh" || exit 1
@@ -367,13 +367,13 @@ __eend() {
}
eend() {
- [[ -n $1 ]] || eqawarn "QA Notice: eend called without first argument"
+ [[ -n ${1} ]] || die "${FUNCNAME}(): Missing argument"
+ local retval=${1}
+ shift
if (( --__EBEGIN_EEND_COUNT < 0 )); then
__EBEGIN_EEND_COUNT=0
eqawarn "QA Notice: eend called without preceding ebegin in ${FUNCNAME[1]}"
fi
- local retval=${1:-0}
- shift
__eend ${retval} eerror "$*"
next reply other threads:[~2024-12-15 7:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-15 7:58 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-15 21:49 [gentoo-commits] proj/portage:master commit in: bin/, / Zac Medico
2025-01-09 17:10 James Le Cuirot
2024-11-21 12:22 Ulrich Müller
2024-11-04 20:52 Zac Medico
2023-08-02 6:31 Sam James
2023-06-09 13:03 Sam James
2023-05-14 5:04 Ulrich Müller
2023-05-01 7:21 Sam James
2023-04-18 15:22 Ulrich Müller
2023-04-09 6:52 Sam James
2022-11-30 22:29 Sam James
2022-11-30 1:22 Sam James
2022-10-04 0:25 Sam James
2022-09-29 20:45 Sam James
2022-09-29 20:45 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1734214733.9f877651bfd0940cdf271456425edbbec7fc60bd.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox