commit 3ba73d50f54f452539abd44b81f4b6bad0fb653b
parent 857be0042c66a12befd282cbb26a652c93af00ac
Author: torter <koubbamohamedrayan@gmail.com>
Date: Tue, 27 Oct 2026 17:25:16 -0400
repo from master.dl.sourceforge.net: downloads.sourceforge.net sends apk to random mirrors and some never finish, the netinst hung at 0%. updater 0.3.0-r1 moves installed systems over
Diffstat:
6 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/build.sh b/build.sh
@@ -23,7 +23,9 @@ OUT=${OUT:-$HERE/out}; ISO=$OUT/chamesle-$VERSION-$EDITION-x86_64.iso
NETINST=$(edval netinst)
# no version: it installs whatever the repo has, the same link always gets the current one
[ "$NETINST" = yes ] && ISO=$OUT/chamesle-x86_64.iso
-PUBLIC_REPO=https://downloads.sourceforge.net/project/chameslerepos
+# sourceforge's own server, not downloads.sourceforge.net: that one sends each file to a random mirror,
+# some of them crawl, and apk waits on them forever
+PUBLIC_REPO=https://master.dl.sourceforge.net/project/chameslerepos
# where the netinst installs from: the public repo. NETREPO="v3 URL;v3 URL" to test against others
NETREPO=${NETREPO:-v3 $PUBLIC_REPO}
REPO=${REPO:-$( [ -f "$HERE/work/repo/x86_64/Packages.adb" ] && echo "$HERE/work/repo" || echo "$PUBLIC_REPO")}
diff --git a/tools/pkg/build.sh b/tools/pkg/build.sh
@@ -13,7 +13,7 @@ KEYDIR=${KEYDIR:-$HOME/.config/chamesle}
KEY=$(ls "$KEYDIR"/chamesle-*.rsa | sort | tail -n1)
ARCH=x86_64
# what it builds with comes from the repo here, or the public one when there's no full copy here
-PULL=${PULL:-$( [ -f "$REPO/$ARCH/Packages.adb" ] && echo "$REPO" || echo https://downloads.sourceforge.net/project/chameslerepos)}
+PULL=${PULL:-$( [ -f "$REPO/$ARCH/Packages.adb" ] && echo "$REPO" || echo https://master.dl.sourceforge.net/project/chameslerepos)}
[ $# = 1 ] && [ -f "$HERE/$1/recipe" ] || { echo "usage: $0 NAME (one of: $(cd "$HERE" && ls */recipe | sed 's|/recipe||' | tr '\n' ' '))" >&2; exit 1; }
. "$HERE/$1/recipe"
diff --git a/tools/pkg/chamesle-updater/post-install b/tools/pkg/chamesle-updater/post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+# downloads.sourceforge.net sends apk to a random mirror and some never finish: use sourceforge's own server
+for f in /etc/apk/repositories /usr/share/chamesle/repositories; do
+ [ -f $f ] && sed -i 's|https://downloads.sourceforge.net/project/chameslerepos|https://master.dl.sourceforge.net/project/chameslerepos|' $f
+done
+exit 0
diff --git a/tools/pkg/chamesle-updater/post-upgrade b/tools/pkg/chamesle-updater/post-upgrade
@@ -0,0 +1,6 @@
+#!/bin/sh
+# downloads.sourceforge.net sends apk to a random mirror and some never finish: use sourceforge's own server
+for f in /etc/apk/repositories /usr/share/chamesle/repositories; do
+ [ -f $f ] && sed -i 's|https://downloads.sourceforge.net/project/chameslerepos|https://master.dl.sourceforge.net/project/chameslerepos|' $f
+done
+exit 0
diff --git a/tools/pkg/chamesle-updater/recipe b/tools/pkg/chamesle-updater/recipe
@@ -1,6 +1,6 @@
name=chamesle-updater
version=0.3.0
-rel=0
+rel=1
desc="Installs updates in the background, or tells you when there are some and opens the store"
url=https://chamesle.org
license=GPL-3.0-or-later
diff --git a/tools/repo/merge-index.sh b/tools/repo/merge-index.sh
@@ -9,10 +9,10 @@ set -euo pipefail
HERE=$(cd "$(dirname "$0")" && pwd)
TOP=$HERE/../..
APK=${APK:-apk}
-INDEX=${INDEX:-https://downloads.sourceforge.net/project/chameslerepos/x86_64/Packages.adb}
+INDEX=${INDEX:-https://master.dl.sourceforge.net/project/chameslerepos/x86_64/Packages.adb}
KEY=$(ls "$HOME"/.config/chamesle/chamesle-*.rsa | sort | tail -n1)
OUT=${OUT:-$TOP/work/publish/x86_64}
-T=$(mktemp -d); trap 'rm -rf "$T"' EXIT
+T=$TOP/work/merge-tmp; rm -rf "$T"; mkdir -p "$T"; trap 'rm -rf "$T"' EXIT
curl -fsSL -o "$T/old.adb" "$INDEX"
# only an index we signed: one of the keys in keys/apk has to check out