commit: 8e51c60b9a95bf566390852a64f2e9b9c1e1efcc
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sun Jul 20 08:09:20 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 22 22:30:57 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8e51c60b
isolated-functions.sh: rename the appropriate_section variable to in_section
As regards the __repo_attr() function, rename its 'appropriate_section'
variable to 'in_section'.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/isolated-functions.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index d429e83feb..b2f4b93628 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -540,15 +540,15 @@ has() {
}
__repo_attr() {
- local appropriate_section exit_status=1 line
saved_extglob_shopt=$(shopt -p extglob)
+ local in_section exit_status=1 line saved_extglob_shopt=$(shopt -p
extglob)
shopt -s extglob
while read -r line; do
- if (( ! appropriate_section )) && [[ ${line} == "[$1]" ]]; then
- appropriate_section=1
- elif (( appropriate_section )) && [[ ${line} == "["*"]" ]]; then
- appropriate_section=0
- elif (( appropriate_section )) && [[ ${line} =~
^${2}[[:space:]]*= ]]; then
+ if (( ! in_section )) && [[ ${line} == "[$1]" ]]; then
+ in_section=1
+ elif (( in_section )) && [[ ${line} == "["*"]" ]]; then
+ in_section=0
+ elif (( in_section )) && [[ ${line} =~ ^${2}[[:space:]]*= ]];
then
echo "${line##$2*( )=*( )}"
exit_status=0
break