diff --git a/binhost.sh b/binhost.sh index 6fb9dd3..cea714d 100755 --- a/binhost.sh +++ b/binhost.sh @@ -98,19 +98,24 @@ cat < /usr/local/bin/run_job set -e source /etc/profile +SYNC_MARKER="/var/db/repos/gentoo/.last_sync_marker" + chown -R portage:portage /etc/portage /var/lib/portage/world echo "Syncing..." # if we're missing the tree, sync snapshot if [[ ! -d /var/db/repos/gentoo/profiles ]]; then + echo "Portage tree missing. Performing initial webrsync..." emerge-webrsync -q fi -# eselect repository remove -f gentoo -# eselect repository add gentoo git https://github.com/gentoo-mirror/gentoo - -# update all repos -emaint sync -a +if [[ -f "\$SYNC_MARKER" ]] && [[ -n "\$(find "\$SYNC_MARKER" -mtime -1 2>/dev/null)" ]]; then + echo "Skipping sync: Repo was synced within the last 24h" +else + echo "Sync timer expired (or marker missing), updating repos..." + emaint -a sync + touch "\$SYNC_MARKER" +fi echo "Building world.." diff --git a/hosts/eiki/package.accept_keywords/librewolf b/hosts/eiki/package.accept_keywords/librewolf deleted file mode 100644 index c616625..0000000 --- a/hosts/eiki/package.accept_keywords/librewolf +++ /dev/null @@ -1 +0,0 @@ -www-client/librewolf ~amd64 diff --git a/hosts/eiki/world b/hosts/eiki/world index 6310f24..60ebe83 100644 --- a/hosts/eiki/world +++ b/hosts/eiki/world @@ -20,7 +20,7 @@ sys-kernel/gentoo-kernel sys-kernel/installkernel sys-kernel/linux-firmware sys-process/cronie -www-client/librewolf +www-client/librewolf-bin x11-base/xorg-server x11-misc/dmenu x11-misc/slop