diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-06-06 00:54:51 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-06-06 00:54:51 -0500 |
commit | 2310c2c2a5350b3f6baa730374482b84169bdb32 (patch) | |
tree | 7017a7375713d7c3d6ac7b7dcbec4d2dfdc7346a | |
parent | f75ebd1953f6e41416b5037c4049b55b9a21a1ea (diff) | |
download | abuild-2310c2c2a5350b3f6baa730374482b84169bdb32.tar.gz abuild-2310c2c2a5350b3f6baa730374482b84169bdb32.tar.bz2 abuild-2310c2c2a5350b3f6baa730374482b84169bdb32.tar.xz abuild-2310c2c2a5350b3f6baa730374482b84169bdb32.zip |
abuild: Set default distfiles mirror for Adélie
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
-rw-r--r-- | abuild.in | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)\ |