aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-09 18:18:40 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-12 20:32:37 +0100
commit6413684d6dfa039c01092e5caab15e72ce73d3bd (patch)
tree2aee7b553ac774c09099e17f707e4b3135cfb8cc
parentEAPI 6: Revert support for profile- and repo-level directories (diff)
downloadportage-6413684d6dfa039c01092e5caab15e72ce73d3bd.tar.gz
portage-6413684d6dfa039c01092e5caab15e72ce73d3bd.tar.bz2
portage-6413684d6dfa039c01092e5caab15e72ce73d3bd.zip
eapply_user: Make idempotent per changes to EAPI 6
-rw-r--r--bin/phase-helpers.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 2fea0b297..511a41a4d 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