summaryrefslogtreecommitdiffstats
path: root/db-remove
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-10-27 14:32:39 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-10-27 14:39:47 +0200
commitb2952784db9995ecc21d3a770530a19394234d3b (patch)
tree8fedbc5d9b3c309554a45aaf31d414332e28adf0 /db-remove
parenta539598c640caa92e2b1967949836d73c5264036 (diff)
downloaddbscripts-b2952784db9995ecc21d3a770530a19394234d3b.tar.gz
dbscripts-b2952784db9995ecc21d3a770530a19394234d3b.tar.xz
Add the possibility to run all svn commands with a different user
* A SVNUSER can be configured in the config file * This user needs to be able to call svn without a password
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-remove b/db-remove
index da32c78..25cb9a7 100755
--- a/db-remove
+++ b/db-remove
@@ -32,12 +32,12 @@ done
remove_pkgs=()
for pkgbase in ${pkgbases[@]}; do
msg "Removing $pkgbase from [$repo]..."
- /usr/bin/svn checkout -q "${SVNREPO}/${pkgbase}" "${WORKDIR}/svn/${pkgbase}" >/dev/null
+ arch_svn checkout -q "${SVNREPO}/${pkgbase}" "${WORKDIR}/svn/${pkgbase}" >/dev/null
if [ -d "${WORKDIR}/svn/$pkgbase/repos/$svnrepo" ]; then
remove_pkgs=(${remove_pkgs[@]} $(. "${WORKDIR}/svn/$pkgbase/repos/$svnrepo/PKGBUILD"; echo ${pkgname[@]}))
- /usr/bin/svn rm --force -q "${WORKDIR}/svn/$pkgbase/repos/$svnrepo"
- /usr/bin/svn commit -q "${WORKDIR}/svn/$pkgbase" -m "${0##*/}: $pkgbase removed by $(id -un)"
+ arch_svn rm --force -q "${WORKDIR}/svn/$pkgbase/repos/$svnrepo"
+ arch_svn commit -q "${WORKDIR}/svn/$pkgbase" -m "${0##*/}: $pkgbase removed by $(id -un)"
else
warning "$pkgbase not found in $svnrepo"
warning "Removing only $pkgbase from the repo"