gentoo-asahi-releng/scripts/update_official_tree
Robin H. Johnson 69b94063ec
emerge must use repos.conf now, instead of PORTDIR.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-05-27 13:55:55 -07:00

15 lines
329 B
Bash
Executable file

#!/bin/bash
PORTDIR="/release/trees/portage-official/"
TMPREPO=$(mktemp)
trap "rm -f $TMPREPO" EXIT
cat >$f <<EOF
[DEFAULT]
main-repo = gentoo
[gentoo]
location = $PORTDIR
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
EOF
PORTAGE_REPOSITORIES="$(cat $TMPREPO)" FEATURES="$FEATURES -news" emerge --sync -q