commit:     8f0a6165ded1aecea9ae4b38f2b6e0eba328c62a
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 12 16:36:20 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jun 12 16:36:20 2018 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=8f0a6165

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.

 scripts/bootstrap-prefix.sh | 4 ++++
 1 file changed, 4 insertions(+)

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"
 }
 

Reply via email to