commit: f64ce32426f7be047dde583ada96f0cf3128a0a3
Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
AuthorDate: Tue Feb 15 21:17:56 2022 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Feb 15 21:17:56 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=f64ce324
ebuild: clarify EAPI bash requirements in error message
When installing a package with an older bash than the ebuild's EAPI
requires, the simple error message ">=bash-5.0 is required" is much
too terse. Add details explaining why a newer version of bash is
required.
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
bin/ebuild.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index ba406034b..5b0b79585 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -32,7 +32,7 @@ __check_bash_version() {
# Make sure the active bash is sane.
if [[ ${BASH_VERSINFO[0]} -lt ${maj} ]] ||
[[ ${BASH_VERSINFO[0]} -eq ${maj} && ${BASH_VERSINFO[1]} -lt ${min}
]] ; then
- die ">=bash-${maj}.${min} is required"
+ die "EAPI=\"${EAPI}\" requires >=bash-${maj}.${min}, but
bash-${BASH_VERSION} found"
fi
# Set the compat level in case things change with newer ones. We must
not