Commit 081a0a11 authored by jan.koester's avatar jan.koester
Browse files

build-chroot: FenStore from tuxist/fenstore; fetch_git follows a changed URL

The FENSTORE_REPO default was tuxist/fenrirstore.git, whose last commit
(2026-11-07) still includes authdb/client.h; the fenrirds client package
now installs fenrirds/client.h, so the RC5 fenstore step failed. FenStore
moved on in tuxist/fenstore ("use the fenrirds client").

fetch_git updated an existing clone from its own origin, ignoring the URL
it was given: a work dir cloned from the old repo would have kept
fetching it. It now points origin at the given URL first.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent 623d90a5
Loading
Loading
Loading
Loading
+4 −1
Changes for build-chroot.sh: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ SHAREDD_REPO="${SHAREDD_REPO:-git@git.tuxist.de:tuxist/sharedd.git}"
ADCONNECT_REPO="${ADCONNECT_REPO:-git@git.tuxist.de:tuxist/adconnect.git}"
STORAGED_REPO="${STORAGED_REPO:-git@git.tuxist.de:tuxist/storaged.git}"
CONTAINERD_REPO="${CONTAINERD_REPO:-git@git.tuxist.de:tuxist/containerd.git}"
FENSTORE_REPO="${FENSTORE_REPO:-git@git.tuxist.de:tuxist/fenrirstore.git}"
FENSTORE_REPO="${FENSTORE_REPO:-git@git.tuxist.de:tuxist/fenstore.git}"
ISCSID_REPO="${ISCSID_REPO:-git@tuxist.de:tuxist/iscsid.git}"
UPSD_REPO="${UPSD_REPO:-git@git.tuxist.de:tuxist/upsd.git}"
FIREWALLD_REPO="${FIREWALLD_REPO:-git@git.tuxist.de:tuxist/firewalld.git}"
@@ -526,6 +526,9 @@ step_fresh() {
fetch_git() {
    local dest="$1" url="$2" ref="${3:-}"
    if [[ -d $dest/.git ]]; then
        # the URL may have changed since the clone (FENSTORE_REPO, a moved repo)
        [[ $(git -C "$dest" remote get-url origin 2>/dev/null) == "$url" ]] ||
            git -C "$dest" remote set-url origin "$url"
        [[ -n $ref ]] && git -C "$dest" rev-parse -q --verify "refs/tags/$ref" >/dev/null && return
        msg "updating $url${ref:+ ($ref)}"
        run fetch git -C "$dest" fetch --depth 1 origin ${ref:+"$ref"}