commit:     2cf0e1224b7d8f4016dda0c197539c85d86ec65c
Author:     Thomas Sachau <tommy <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 15 17:15:46 2021 +0000
Commit:     Thomas Sachau <tommy <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 17:15:46 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=2cf0e122

Dont loop with readonly variables

Signed-off-by: Thomas Sachau <tommy <AT> gentoo.org>

 bin/phase-functions.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index 0e87a051c..b74d611d4 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -1164,6 +1164,8 @@ __ebuild_main() {
                                        # >/dev/null = backward compactibility 
for prerm/postrm
                                        source "${T}"/environment 2>/dev/null 
|| die
                                fi
+                               #dont run more then once with readonly variables
+                               grep -q "readonly " "${T}"/environment && break
                        done
                else
                        export SANDBOX_ON="0"

Reply via email to