index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-28 11:09:49 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-28 11:09:49 -0500 |
commit | 8c0ab05d635c66feb07ec102515f02d13f9af2d6 (patch) | |
tree | 8cf425cf2243195c0de12c83588a32566588c2f0 /crossrepomove.in | |
parent | c4785f9cb3e42b29d0cc39198559976cacc07995 (diff) | |
parent | 890baf68915294d27dfb11efc7a889e21e46ec2b (diff) |
-rw-r--r-- | crossrepomove.in | 20 |
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}" |