summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/db-update b/db-update
index 272b575..230879f 100755
--- a/db-update
+++ b/db-update
@@ -58,16 +58,18 @@ for repo in ${repos[@]}; do
done
for repo in ${repos[@]}; do
+ declare -a pkgs_to_add=()
for pkgfile in $(getpkgfiles "${STAGING}/${repo}/"*${PKGEXT} 2>/dev/null); do
arch_add_to_pool "$pkgfile"
for pkgarch in ${ARCHES[@]}; do
pkgfile_arch="$STAGING/$repo/$pkgarch/${pkgfile##*/}"
if [[ -h "$pkgfile_arch" ]]; then
- arch_db_add $repo "${pkgfile##*/}" $pkgarch
+ pkgs_to_add=("${pkgs_to_add[@]}" "${pkgfile##*/}")
rm "$pkgfile_arch"
fi
done
done
+ arch_db_add $repo "$pkgarch" "${pkgs_to_add[@]}"
done
arch_history_commit "db-update: ${repos[@]}"