summaryrefslogtreecommitdiffstats
path: root/db-repo-add
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-01-15 01:12:09 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-01-15 01:12:09 +0100
commit4da9bf112b07c94a7fd65a729ce62610ade8e5aa (patch)
tree326b793a2b8a2bacc43be518d0f209557d8afd03 /db-repo-add
parent7519447709e1ac9a5b5edaa04b32c03ac09ee2ef (diff)
downloaddbscripts-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-repo-add')
-rwxr-xr-xdb-repo-add3
1 files changed, 1 insertions, 2 deletions
diff --git a/db-repo-add b/db-repo-add
index b6dd8b8..53cfc84 100755
--- a/db-repo-add
+++ b/db-repo-add
@@ -34,7 +34,6 @@ for tarch in ${tarches[@]}; do
if [ ! -f "${pkgfile}" ]; then
die "Package file ${pkgfile} not found"
fi
- /usr/bin/repo-add -q "$ftppath/$tarch/$repo$DBEXT" ${pkgfile} >/dev/null
- set_repo_permission "${repo}" "${tarch}"
+ arch_repo_add "${repo}" "${tarch}" ${pkgfile}
repo_unlock $repo $tarch
done