summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro.dev@gmail.com>2016-02-10 21:25:59 +0900
committerYuta SATOH <nigoro.dev@gmail.com>2016-02-10 21:25:59 +0900
commit9f7b721feef822f19c84710afe92b872b3a54ec2 (patch)
tree7f79c84028ef05de92d03113de5fb41ee9a91406
parentcreate_forcestage3.sh: Fixed an issue that can not mount DISTDIR. (diff)
downloadgentoo-bsd-9f7b721feef822f19c84710afe92b872b3a54ec2.tar.gz
gentoo-bsd-9f7b721feef822f19c84710afe92b872b3a54ec2.tar.bz2
gentoo-bsd-9f7b721feef822f19c84710afe92b872b3a54ec2.zip
scripts/automatic_updater.sh: Force update portage.
-rwxr-xr-xscripts/automatic_updater.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/automatic_updater.sh b/scripts/automatic_updater.sh
index 6fd60f7..1413b53 100755
--- a/scripts/automatic_updater.sh
+++ b/scripts/automatic_updater.sh
@@ -30,19 +30,16 @@ move_makeconf(){
}
update_portage(){
+ local dl_portage_ver="2.2.27"
emerge -p --nodeps dev-lang/python-exec && :
if [[ $? -eq 0 ]] ; then
emerge --nodeps dev-lang/python-exec
fi
- if [[ ! -e /usr/lib/python-exec ]] ; then
- cd /tmp
- wget http://dev.gentoo.org/~dolsen/releases/portage/portage-2.2.20.tar.bz2
- tar xjf portage-2.2.20.tar.bz2
- PYTHON_TARGETS="python2_7" portage-2.2.20/bin/emerge --nodeps dev-lang/python-exec
- PYTHON_TARGETS="python2_7" portage-2.2.20/bin/emerge --nodeps sys-apps/portage
- else
- emerge -u sys-apps/portage --exclude sys-freebsd/*
- fi
+ cd /tmp
+ wget http://dev.gentoo.org/~dolsen/releases/portage/portage-${dl_portage_ver}.tar.bz2
+ tar xjf portage-${dl_portage_ver}.tar.bz2
+ PYTHON_TARGETS="python2_7" "portage-${dl_portage_ver}"/bin/emerge --nodeps dev-lang/python-exec
+ PYTHON_TARGETS="python2_7" "portage-${dl_portage_ver}"/bin/emerge --nodeps sys-apps/portage
}
update_minimal(){