diff --git a/binhost.sh b/binhost.sh index 05c817d..341b762 100755 --- a/binhost.sh +++ b/binhost.sh @@ -101,12 +101,14 @@ source /etc/profile chown -R portage:portage /etc/portage /var/lib/portage/world echo "Syncing..." -if [[ -d /var/db/repos/gentoo/.git ]]; then - emaint sync -a -else +# if we're missing the tree, sync snapshot +if [[ ! -d /var/db/repos/gentoo/profiles ]]; then emerge-webrsync -q fi +# update all repos +emaint sync -a + echo "Building world.." emerge --verbose --usepkg --buildpkg \