diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-10-27 14:32:39 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-10-27 14:39:47 +0200 |
commit | b2952784db9995ecc21d3a770530a19394234d3b (patch) | |
tree | 8fedbc5d9b3c309554a45aaf31d414332e28adf0 /db-remove | |
parent | a539598c640caa92e2b1967949836d73c5264036 (diff) | |
download | dbscripts-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-x | db-remove | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |