diff options
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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[@]}" |