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-remove | |
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-remove')
-rwxr-xr-x | db-remove | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -41,11 +41,6 @@ else fi for tarch in ${tarches[@]}; do - if [ ! -f "$ftppath/$tarch/$repo$DBEXT" ]; then - die "No database found at '$ftppath/$tarch', nothing more to do" - fi - - /usr/bin/repo-remove -q "$ftppath/$tarch/$repo$DBEXT" ${pkgnames[@]} >/dev/null - set_repo_permission "${repo}" "${tarch}" + arch_repo_remove "${repo}" "${tarch}" ${pkgnames[@]} repo_unlock $repo $tarch done |