summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2012-11-13 03:08:46 -0500
committerPierre Schmitz <pierre@archlinux.de>2012-11-15 14:32:34 +0100
commit4427b80aba6fe2de16d1403b86995d9761926100 (patch)
treedd07af532ab66d7bec86fe91df799ab50cb08739
parent41b54bdde5112e884c8577a07805db9c9d2bdb7b (diff)
downloaddevtools32-4427b80aba6fe2de16d1403b86995d9761926100.tar.xz
crossrepomove: Fix dbscripts path for [community] move to nymeria
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--crossrepomove.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/crossrepomove.in b/crossrepomove.in
index a19e5f3..8794326 100644
--- a/crossrepomove.in
+++ b/crossrepomove.in
@@ -72,11 +72,23 @@ svn -q commit -m"${scriptname}: Moving ${pkgbase} from ${source_repo} to ${targe
pushd "target_checkout/${pkgbase}/trunk" >/dev/null
archrelease "${arch[@]/#/$target_repo-}" || die
popd >/dev/null
-ssh "${target_server}" '/arch/db-update' || die
+
+if [[ "${target_server}" == "${community_server}" ]]; then
+ dbscripts_path='/srv/repos/svn-community/dbscripts'
+else
+ dbscripts_path='/arch'
+fi
+
+ssh "${target_server}" "${dbscripts_path}/db-update" || die
msg "Removing ${pkgbase} from ${source_repo}"
+if [[ "${source_server}" == "${community_server}" ]]; then
+ dbscripts_path='/srv/repos/svn-community/dbscripts'
+else
+ dbscripts_path='/arch'
+fi
for _arch in ${arch[@]}; do
- ssh "${source_server}" "/arch/db-remove ${source_repo} ${_arch} ${pkgbase}"
+ ssh "${source_server}" "${dbscripts_path}/db-remove ${source_repo} ${_arch} ${pkgbase}"
done
svn -q checkout -N "${source_svn}" source_checkout
svn -q up "source_checkout/${pkgbase}"