sync: eiki 2025-12-07 18:51
This commit is contained in:
15
binhost.sh
15
binhost.sh
@@ -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.."
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
www-client/librewolf ~amd64
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user