From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/prefix:rap0 commit in: scripts/
Date: Sat, 2 Jul 2016 01:33:18 +0000 (UTC) [thread overview]
Message-ID: <1467423187.ea76a7be66652252874364526eaf69463b5d31e5.heroxbd@gentoo> (raw)
commit: ea76a7be66652252874364526eaf69463b5d31e5
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 4 07:25:15 2016 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sat Jul 2 01:33:07 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ea76a7be
s/bootstrap-prefix.sh: remove EPREFIX/tmp after "emerge -e system".
partially reverts 3a945696443b.
A rerun of bootstrap script after "emerge -e system" failure
should not go through stage1 again.
scripts/bootstrap-prefix.sh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index a5db862..7e73ca2 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1514,12 +1514,6 @@ EOF
# Switch to the proper portage.
hash -r
- # Get rid of the temporary tools.
- if [[ -d ${ROOT}/tmp/var/tmp ]] ; then
- rm -rf "${ROOT}"/tmp
- mkdir "${ROOT}"/tmp
- fi
-
# Update the portage tree.
treedate=$(date -f "${ROOT}"/usr/portage/metadata/timestamp +%s)
nowdate=$(date +%s)
@@ -2167,7 +2161,13 @@ EOF
hash -r # tmp/* stuff is removed in stage3
- if ! emerge -e system ; then
+ if emerge -e system ; then
+ # Now, after 'emerge -e system', we can get rid of the temporary tools.
+ if [[ -d ${EPREFIX}/tmp/var/tmp ]] ; then
+ rm -Rf "${EPREFIX}"/tmp || return 1
+ mkdir -p "${EPREFIX}"/tmp || return 1
+ fi
+ else
# emerge -e system fail
cat << EOF
next reply other threads:[~2016-07-02 1:33 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 1:33 Benda XU [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-06-15 11:32 [gentoo-commits] repo/proj/prefix:rap0 commit in: scripts/ Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 10:12 [gentoo-commits] repo/proj/prefix:master " Benda XU
2016-06-15 11:32 ` [gentoo-commits] repo/proj/prefix:rap0 " Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 7:58 [gentoo-commits] repo/proj/prefix:master " Benda XU
2016-06-15 8:04 ` [gentoo-commits] repo/proj/prefix:rap0 " Benda XU
2016-06-15 0:35 Benda XU
2016-06-15 0:35 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-04 7:29 Benda XU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467423187.ea76a7be66652252874364526eaf69463b5d31e5.heroxbd@gentoo \
--to=heroxbd@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox