From 4eb1d7540665bf1b96c58727c767f8304e94873f Mon Sep 17 00:00:00 2001 From: kuwoyuki Date: Sun, 7 Dec 2025 18:10:33 +0600 Subject: [PATCH] fix: sync logic --- binhost.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 \