summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-01-31 23:33:37 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-05-27 15:46:04 +0200
commitbf9c9f045dbd0f329dc914adc2b5ef9d79870f21 (patch)
tree46fb8f1dfe7c08587dfdfe6f00b471e49e19ce6e
parente783d30ac46e440869eacbfebbf3d9616952448c (diff)
downloaddbscripts-bf9c9f045dbd0f329dc914adc2b5ef9d79870f21.tar.gz
dbscripts-bf9c9f045dbd0f329dc914adc2b5ef9d79870f21.tar.xz
bugfix
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--db-functions5
-rwxr-xr-xdb-update8
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() {
diff --git a/db-update b/db-update
index e924f45..8105c5d 100755
--- a/db-update
+++ b/db-update
@@ -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