Watch
1
0
Fork
You've already forked souveraine
0

upower version: .r not + (a + in a gitea asset name 404s)

This commit is contained in:
Fimeg 2026-07-25 06:05:24 -04:00
commit 155288d96e

View file

@ -296,7 +296,11 @@ jobs:
# the repo copy as a downgrade and -Syu silently skips it.
UPOWER_VER=$(sed -nE "s/^ *version *: *'([^']+)'.*/\1/p" \
"$GITHUB_WORKSPACE/src/upower/meson.build" | head -1)
UPOWER_PKGVER="${UPOWER_VER}+$(git -C "$GITHUB_WORKSPACE/src/upower" rev-parse --short HEAD)"
# '.r' not '+': a literal + in a release asset filename cannot be
# fetched from Gitea at all — it is stored decoded as a space, and
# both the raw + and %2B forms 404. Still sorts above the old
# hand-built 1.91.3+<sha> because vercmp reads + as a separator too.
UPOWER_PKGVER="${UPOWER_VER}.r$(git -C "$GITHUB_WORKSPACE/src/upower" rev-parse --short HEAD)"
UPOWER_WORK="$WORK/upower-$ARCH"
mkdir -p "$UPOWER_WORK"