summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-06-12 18:36:20 +0200
committerFabian Groffen <grobian@gentoo.org>2018-06-12 18:36:20 +0200
commit8f0a6165ded1aecea9ae4b38f2b6e0eba328c62a (patch)
treea33f2c10bc1b3900fb8231c9f369e21f0207493e
parentscripts/bootstrap-prefix: remove makeinfo hack sooner (diff)
downloadprefix-8f0a6165ded1aecea9ae4b38f2b6e0eba328c62a.tar.gz
prefix-8f0a6165ded1aecea9ae4b38f2b6e0eba328c62a.tar.bz2
prefix-8f0a6165ded1aecea9ae4b38f2b6e0eba328c62a.zip
scripts/bootstrap-prefix: clear resume list at end of stage3
To avoid incorrectly resuming some crap from e.g. depclean, make sure we clear the resume list at the end of stage3, such that we will start with a clean slate.
-rwxr-xr-xscripts/bootstrap-prefix.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 80c9ebd956..f39daf9b2e 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1855,6 +1855,10 @@ bootstrap_stage3() {
einfo "running emerge --depclean"
emerge --depclean
+ # "wipe" mtimedb such that the resume list is proper after this stage
+ # (--depclean may fail, which is ok)
+ sed -i -e 's/resume_backup/cleared/' "${EPREFIX}"/var/cache/edb/mtimedb
+
einfo "stage3 successfully finished"
}