commit: 3eeff52eda750df5fc75b5e9b460a3786c968c7c
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Fri Jul 18 19:14:01 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 22 22:29:36 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3eeff52e
phase-helpers.sh: rename _eapply_patch() to __eapply_patch()
Presently, the "phase-helpers.sh" unit defines the _eapply_patch()
helper function, provided that the targeted EAPI is confirmed to support
eapply(). Unlike other functions that portage declares as ostensibly
being for internal use, its name contains only a single leading
<underscore>, rendering it an outlier. Rename the function so that its
name contains two leading <underscore> characters.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/phase-helpers.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index f01ef09467..89f1f6f2f8 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -981,7 +981,7 @@ if ___eapi_has_eapply; then
patch() { gpatch "$@"; }
fi
- _eapply_patch() {
+ __eapply_patch() {
local prefix=$1 patch=$2 output IFS
shift 2
@@ -1041,14 +1041,14 @@ if ___eapi_has_eapply; then
if (( i++ == 0 )); then
einfo "Applying patches
from ${path} ..."
fi
- _eapply_patch ' ' "${f}"
"${options[@]}" || return
+ __eapply_patch ' ' "${f}"
"${options[@]}" || return
fi
done
if (( i == 0 )); then
die "No *.{patch,diff} files in
directory ${path}"
fi
else
- _eapply_patch '' "${path}" "${options[@]}" ||
return
+ __eapply_patch '' "${path}" "${options[@]}" ||
return
fi
done
}