fix: sync logic

This commit is contained in:
2025-12-07 18:10:33 +06:00
parent 1f35d7bda2
commit 4eb1d75406

View File

@@ -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 \