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
|
set -e
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
||||||
|
SYNC_MARKER="/var/db/repos/gentoo/.last_sync_marker"
|
||||||
|
|
||||||
chown -R portage:portage /etc/portage /var/lib/portage/world
|
chown -R portage:portage /etc/portage /var/lib/portage/world
|
||||||
|
|
||||||
echo "Syncing..."
|
echo "Syncing..."
|
||||||
# if we're missing the tree, sync snapshot
|
# if we're missing the tree, sync snapshot
|
||||||
if [[ ! -d /var/db/repos/gentoo/profiles ]]; then
|
if [[ ! -d /var/db/repos/gentoo/profiles ]]; then
|
||||||
|
echo "Portage tree missing. Performing initial webrsync..."
|
||||||
emerge-webrsync -q
|
emerge-webrsync -q
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# eselect repository remove -f gentoo
|
if [[ -f "\$SYNC_MARKER" ]] && [[ -n "\$(find "\$SYNC_MARKER" -mtime -1 2>/dev/null)" ]]; then
|
||||||
# eselect repository add gentoo git https://github.com/gentoo-mirror/gentoo
|
echo "Skipping sync: Repo was synced within the last 24h"
|
||||||
|
else
|
||||||
# update all repos
|
echo "Sync timer expired (or marker missing), updating repos..."
|
||||||
emaint sync -a
|
emaint -a sync
|
||||||
|
touch "\$SYNC_MARKER"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Building world.."
|
echo "Building world.."
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
www-client/librewolf ~amd64
|
|
||||||
@@ -20,7 +20,7 @@ sys-kernel/gentoo-kernel
|
|||||||
sys-kernel/installkernel
|
sys-kernel/installkernel
|
||||||
sys-kernel/linux-firmware
|
sys-kernel/linux-firmware
|
||||||
sys-process/cronie
|
sys-process/cronie
|
||||||
www-client/librewolf
|
www-client/librewolf-bin
|
||||||
x11-base/xorg-server
|
x11-base/xorg-server
|
||||||
x11-misc/dmenu
|
x11-misc/dmenu
|
||||||
x11-misc/slop
|
x11-misc/slop
|
||||||
|
|||||||
Reference in New Issue
Block a user