From 2491d62c47a335114518ed65d35a23a20f9f69b4 Mon Sep 17 00:00:00 2001 From: Claudia Pellegrino Date: Thu, 3 Feb 2022 20:56:28 +0100 Subject: [PATCH] Fix DLAGENTS for automatic download Prevent existing DLAGENTS arrays (configured in /etc/makepkg.conf and ~/.makepkg.conf) from being overwritten by the DLAGENTS array in the PKGBUILD. Without the plus (+) sign, the DLAGENTS array in the PKGBUILD would overwrite and replace the existing DLAGENTS array, effectively disabling all download handlers for this PKGBUILD. The proper way to handle is to append (+=) to the array so that any existing handler for hib::/ remains in effect, and the fallback handler in the PKGBUILD only applies with low priority, i.e. if no other hib::/ handler is configured in /etc/makepkg.conf nor ~/.makepkg.conf. --- PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index ea18222..5c9c6e7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -52,7 +52,7 @@ sha512sums_armv7h=("${_file_zip_arm_hash}") # Add a DLAGENTS for hib if it doesn't exist. # Borrowed from https://aur.archlinux.org/packages/worldofgoo/ PKGBUILD -DLAGENTS=("hib::/usr/bin/echo Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf") +DLAGENTS+=("hib::/usr/bin/echo Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf") # Prepares sources for building prepare () {