From 8b144d25a10d914e6cde03168cef43bcddac42b6 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 20 Feb 2025 12:39:12 +0100 Subject: [PATCH] pacman-helper.sh quick_remove: skip uploading package files The (dual) strategy of the new Pacman repository is to not only publish the latest state in the `x86_64`, `aarch64` and `i686` branches, but also to upload the files in the latest update to a GitHub Release. Naturally, when adding a new package version, the package archive and its PGP signature need to be included in that Release. However, when _removing_ a package, the corresponding package archive should of course be omitted ;-) Signed-off-by: Johannes Schindelin --- pacman-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacman-helper.sh b/pacman-helper.sh index 2c935ba727..b915633231 100755 --- a/pacman-helper.sh +++ b/pacman-helper.sh @@ -551,7 +551,7 @@ quick_action () { # ... sed -n 's/^ "id": *\([0-9]*\).*/\1/p')" fi || die "Could not create a draft release for tag $tagname" - for path in $all_files $dbs + for path in $(test remove = "$label" || echo $all_files) $dbs do if test -n "$PACMANDRYRUN" then @@ -583,7 +583,7 @@ quick_action () { # ... # Upload the file(s) and the appropriate index(es) (cd "$dir" && - for path in $all_files $dbs + for path in $(test remove = "$label" || echo $all_files) $dbs do # The Pacman repository on Azure Blobs still uses the old naming scheme remote_path="$(echo "$path" | sed \