Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/crossrepomove.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 11:09:49 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 11:09:49 -0500
commit8c0ab05d635c66feb07ec102515f02d13f9af2d6 (patch)
tree8cf425cf2243195c0de12c83588a32566588c2f0 /crossrepomove.in
parentc4785f9cb3e42b29d0cc39198559976cacc07995 (diff)
parent890baf68915294d27dfb11efc7a889e21e46ec2b (diff)
Merge remote-tracking branch 'devtools/master' into complete
Conflicts: mkarchroot.in
Diffstat (limited to 'crossrepomove.in')
-rw-r--r--crossrepomove.in20
1 files changed, 16 insertions, 4 deletions
diff --git a/crossrepomove.in b/crossrepomove.in
index 5a2c6e9..8794326 100644
--- a/crossrepomove.in
+++ b/crossrepomove.in
@@ -13,8 +13,8 @@ pkgbase="${1}"
packages_svn='svn+ssh://gerolde.archlinux.org/srv/svn-packages'
packages_server='gerolde.archlinux.org'
-community_svn='svn+ssh://sigurd.archlinux.org/srv/svn-packages'
-community_server='sigurd.archlinux.org'
+community_svn='svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn'
+community_server='nymeria.archlinux.org'
mirror='http://mirrors.kernel.org/archlinux'
case $scriptname 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}"