2012-07-09 17:47:42 +00:00
|
|
|
#!/bin/bash
|
2016-05-27 20:55:55 +00:00
|
|
|
PORTDIR="/release/trees/portage-snapshot/"
|
|
|
|
TMPREPO=$(mktemp)
|
|
|
|
trap "rm -f $TMPREPO" EXIT
|
2016-05-27 21:01:39 +00:00
|
|
|
cat >$TMPREPO <<EOF
|
2016-05-27 20:55:55 +00:00
|
|
|
[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
|