Skip to content
Snippets Groups Projects
Verified Commit f757bcea authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

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.
parent f6effc07
No related branches found
No related tags found
1 merge request!46db-update: Empty arrays each iteration
Pipeline #82179 passed
......@@ -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=()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment