aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2024-03-10 13:12:22 -0700
committerZac Medico <zmedico@gentoo.org>2024-03-10 13:12:22 -0700
commit8ac72ee300c1e9a55f9c1ee96438e8f12d64dd20 (patch)
treef61c62a7fc9dc9fb91edfd2d136f42ef2c409ccc /bin
parent_setup_repo_revisions: Skip async_aux_get for INHERITED (diff)
downloadportage-8ac72ee300c1e9a55f9c1ee96438e8f12d64dd20.tar.gz
portage-8ac72ee300c1e9a55f9c1ee96438e8f12d64dd20.tar.bz2
portage-8ac72ee300c1e9a55f9c1ee96438e8f12d64dd20.zip
install_qa_check: prematurely delete WORKDIR if FEATURES=merge-wait
Delay this until after the install qa hooks so that WORKDIR is accessible to these hooks: * bin/install-qa-check.d/90config-impl-decl * gentoo/metadata/install-qa-check.d/60python-tests Bug: https://github.com/gentoo/portage/pull/1302#issuecomment-1987303879 Fixes: 8eb2502bf264 ("phase-functions: prematurely delete WORKDIR if FEATURES=merge-wait") Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/misc-functions.sh7
-rw-r--r--bin/phase-functions.sh7
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 696f2a613..e7ca2a8a9 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -255,6 +255,13 @@ install_qa_check() {
"${PORTAGE_BIN_PATH}"/estrip --prepallstrip
fi
fi
+
+ # Prematurely delete WORKDIR in case merge-wait is enabled to
+ # decrease the space used by portage build directories until the
+ # packages are merged and cleaned.
+ if has merge-wait ${FEATURES} && ! has keepwork ${FEATURES}; then
+ rm -rf "${WORKDIR}"
+ fi
}
__dyn_instprep() {
diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index 9ff555440..d037cf677 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -724,13 +724,6 @@ __dyn_install() {
>> DEBUGBUILD
fi
trap - SIGINT SIGQUIT
-
- # Prematurely delete WORKDIR in case merge-wait is enabled to
- # decrease the space used by portage build directories until the
- # packages are merged and cleaned.
- if has merge-wait ${FEATURES} && ! has keepwork ${FEATURES}; then
- rm -rf "${WORKDIR}"
- fi
}
__dyn_help() {