sync: eiki 2025-12-07 18:51

This commit is contained in:
2025-12-07 18:51:01 +06:00
parent dbd7dd77f6
commit e79dd30082
3 changed files with 11 additions and 7 deletions

View File

@@ -98,19 +98,24 @@ cat <<EOF | podman exec -i "$CONTAINER_NAME" sh -c "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.."

View File

@@ -1 +0,0 @@
www-client/librewolf ~amd64

View File

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