commit:     6413684d6dfa039c01092e5caab15e72ce73d3bd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  9 17:18:40 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 12 19:32:37 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=6413684d

eapply_user: Make idempotent per changes to EAPI 6

 bin/phase-helpers.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 2fea0b2..511a41a 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -1070,6 +1070,10 @@ fi
 
 if ___eapi_has_eapply_user; then
        eapply_user() {
+               local tagfile=${T}/.portage_user_patches_applied
+               [[ -f ${tagfile} ]] && return
+               >> "${tagfile}"
+
                local basedir=${PORTAGE_CONFIGROOT%/}/etc/portage/patches
 
                local d applied

Reply via email to