diff options
-rw-r--r-- | db-functions | 5 | ||||
-rwxr-xr-x | db-update | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/db-functions b/db-functions index 87488d2..05ff1b9 100644 --- a/db-functions +++ b/db-functions @@ -540,7 +540,10 @@ arch_db_add() { done arch_repo_add "${repo}" "${tarch}" "${pkgfiles[@]}" - arch_history_add "$repo" "$dstdir/$pkgfile" "$tarch" + + for pkgfile in "${pkgfiles[@]}"; do + arch_history_add "$repo" "$dstdir/$pkgfile" "$tarch" + done } arch_db_remove() { @@ -58,11 +58,15 @@ for repo in ${repos[@]}; do done for repo in ${repos[@]}; do - declare -a pkgfiles=() for pkgfile in $(getpkgfiles "${STAGING}/${repo}/"*${PKGEXT} 2>/dev/null); do arch_add_to_pool "$pkgfile" - pkgfiles=("${pkgfiles[@]}" "${pkgfile##*/}") + done + + for file in "$STAGING/$repo"/*/*; do + if [[ -h $file ]]; then + pkgfiles=("${pkgfiles[@]}" "${file##*/}") + fi done for pkgarch in ${ARCHES[@]}; do |