summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update6
1 files changed, 1 insertions, 5 deletions
diff --git a/db-update b/db-update
index 3a49f0a..5bdce5e 100755
--- a/db-update
+++ b/db-update
@@ -67,11 +67,7 @@ for repo in ${repos[@]}; do
add_pkgs[${#add_pkgs[*]}]=${pkgfile}
done
if [ ${#add_pkgs[@]} -ge 1 ]; then
- pushd "$FTP_BASE/$repo/os/${pkgarch}" >/dev/null
- /usr/bin/repo-add -q "$repo$DBEXT" ${add_pkgs[@]} >/dev/null \
- || die "repo-add $repo$DBEXT ${add_pkgs[@]}"
- popd >/dev/null
- set_repo_permission "${repo}" "${pkgarch}"
+ arch_repo_add "${repo}" "${pkgarch}" ${add_pkgs[@]}
fi
done
done