fix: sync logic
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user