From f757bcea40481c1adf154fcf7e58a0e68e09bb1e Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org> Date: Sat, 4 Nov 2023 03:55:44 +0100 Subject: [PATCH] fix(db-update): Empty arrays each iteration This broke db-update for more than one repo at a time. Most importantly, because the `pkgkeys` array kept accumulating keys, we created bogus copies of state repo entries, "releasing" packages into multiple repos. --- db-update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db-update b/db-update index 23223cc..ba1ef62 100755 --- a/db-update +++ b/db-update @@ -137,9 +137,9 @@ done for repo in "${!staging[@]}"; do msg "Updating [%s]..." "$repo" - declare -A add_vcspkgs - declare -A pkgfile_metadata - declare -A pkgkeys + declare -A add_vcspkgs=() + declare -A pkgfile_metadata=() + declare -A pkgkeys=() read -ra any_pkgs <<< "${staging_by_arch[${repo}::any]}" for pkgarch in "${ARCHES[@]}"; do add_pkgs=() -- GitLab