From 2310c2c2a5350b3f6baa730374482b84169bdb32 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 6 Jun 2024 00:54:51 -0500 Subject: abuild: Set default distfiles mirror for Adélie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can't set $DISTFILES_MIRROR in abuild.conf because each package has its own distfiles directory with $pkgname-$pkgver. For that reason, we set the default programmatically in abuild itself. Closes: #4 --- abuild.in | 1 + 1 file changed, 1 insertion(+) diff --git a/abuild.in b/abuild.in index b0c0f9c..5929244 100644 --- a/abuild.in +++ b/abuild.in @@ -359,6 +359,7 @@ filename_from_uri() { # try download from file from mirror first uri_fetch_mirror() { local uri="$1" + : ${DISTFILES_MIRROR:=https://distfiles.adelielinux.org/source/archive/$pkgname-$pkgver} if [ -n "$DISTFILES_MIRROR" ]; then if is_remote "$DISTFILES_MIRROR"; then uri_fetch "$DISTFILES_MIRROR"/$(filename_from_uri $uri)\ -- cgit v1.2.3-70-g09d2