diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-01-15 01:12:09 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-01-15 01:12:09 +0100 |
commit | 4da9bf112b07c94a7fd65a729ce62610ade8e5aa (patch) | |
tree | 326b793a2b8a2bacc43be518d0f209557d8afd03 /db-update | |
parent | 7519447709e1ac9a5b5edaa04b32c03ac09ee2ef (diff) | |
download | dbscripts-4da9bf112b07c94a7fd65a729ce62610ade8e5aa.tar.gz dbscripts-4da9bf112b07c94a7fd65a729ce62610ade8e5aa.tar.xz |
Move repo manipulation code into common functions
repo-add and repo-remove is now indirectly called by arch_repo_add/remove.
This simplifies future extensions like incremental file list creations. See FS#11302
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |