fix publisher bug for multiarch packages
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Successful in 18s

This commit is contained in:
Joachim Schlöffel
2026-07-13 03:06:06 +02:00
parent 89db986774
commit 85122866ac
3 changed files with 7 additions and 18 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Maintainer: Joachim Schlöffel <me@joachim-schloeffel.com> # Maintainer: Joachim Schlöffel <me@joachim-schloeffel.com>
pkgname=gitea pkgname=gitea
pkgver=1.26.4 pkgver=1.26.4
pkgrel=0 pkgrel=1
pkgdesc="Self-hosted Git service written in Go" pkgdesc="Self-hosted Git service written in Go"
url="https://about.gitea.com/" url="https://about.gitea.com/"
arch="x86_64 aarch64" arch="x86_64 aarch64"
+1 -1
View File
@@ -1,7 +1,7 @@
# Maintainer: Joachim Schlöffel <me@joachim-schloeffel.com> # Maintainer: Joachim Schlöffel <me@joachim-schloeffel.com>
pkgname=seaweedfs pkgname=seaweedfs
pkgver=4.39 pkgver=4.39
pkgrel=0 pkgrel=1
pkgdesc="Distributed storage system for object storage, file systems, and Iceberg tables" pkgdesc="Distributed storage system for object storage, file systems, and Iceberg tables"
url="https://github.com/seaweedfs/seaweedfs" url="https://github.com/seaweedfs/seaweedfs"
arch="x86_64 aarch64" arch="x86_64 aarch64"
+5 -16
View File
@@ -64,39 +64,28 @@ while IFS= read -r package_dir; do
done done
done < <(apk_all_package_dirs "${repo_root}") done < <(apk_all_package_dirs "${repo_root}")
declare -A published_filenames=() current_apks=()
unique_apks=()
stale_count=0 stale_count=0
duplicate_count=0
for apk in "${apks[@]}"; do for apk in "${apks[@]}"; do
filename="$(basename "${apk}")"
if [[ -z "${expected_apks[${apk}]:-}" ]]; then if [[ -z "${expected_apks[${apk}]:-}" ]]; then
printf 'Skipping stale local APK: %s\n' "${apk#"${repo_root}/"}" printf 'Skipping stale local APK: %s\n' "${apk#"${repo_root}/"}"
stale_count=$((stale_count + 1)) stale_count=$((stale_count + 1))
continue continue
fi fi
if [[ -n "${published_filenames[${filename}]:-}" ]]; then current_apks+=("${apk}")
duplicate_count=$((duplicate_count + 1))
continue
fi
published_filenames["${filename}"]=1
unique_apks+=("${apk}")
done done
if [[ "${#unique_apks[@]}" -eq 0 ]]; then if [[ "${#current_apks[@]}" -eq 0 ]]; then
printf 'no current APK files found under %s\n' "${package_root}" >&2 printf 'no current APK files found under %s\n' "${package_root}" >&2
exit 1 exit 1
fi fi
printf 'Publishing %d APK files to %s\n' "${#unique_apks[@]}" "${upload_url}" printf 'Publishing %d APK files to %s\n' "${#current_apks[@]}" "${upload_url}"
if [[ "${duplicate_count}" -ne 0 ]]; then
printf 'Skipping %d duplicate local APK filename(s)\n' "${duplicate_count}"
fi
if [[ "${stale_count}" -ne 0 ]]; then if [[ "${stale_count}" -ne 0 ]]; then
printf 'Skipping %d stale local APK file(s)\n' "${stale_count}" printf 'Skipping %d stale local APK file(s)\n' "${stale_count}"
fi fi
for apk in "${unique_apks[@]}"; do for apk in "${current_apks[@]}"; do
filename="$(basename "${apk}")" filename="$(basename "${apk}")"
status="$( status="$(
curl --silent --show-error --location \ curl --silent --show-error --location \