diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-12 11:41:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-06-10 11:22:30 +0200 |
commit | 75a16bafa3d79499af710414c57ff50451b158a3 (patch) | |
tree | 295ed2cf237affacc48fe6bef754875773eb989d /db-move | |
parent | 33cfe12c34747bd52e2730e45566e5b21cd76153 (diff) | |
download | dbscripts-75a16bafa3d79499af710414c57ff50451b158a3.tar.gz dbscripts-75a16bafa3d79499af710414c57ff50451b158a3.tar.xz |
db-move: commit all arches at once
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'db-move')
-rwxr-xr-x | db-move | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -63,6 +63,7 @@ msg "Moving packages from [${repo_from}] to [${repo_to}]..." declare -A add_pkgs declare -A remove_pkgs for pkgbase in ${args[@]:2}; do + tag_list="" for pkgarch in ${ARCHES[@]} 'any'; do svnrepo_from="${WORKDIR}/svn/${pkgbase}/repos/${repo_from}-${pkgarch}" svnrepo_to="${WORKDIR}/svn/${pkgbase}/repos/${repo_to}-${pkgarch}" @@ -90,7 +91,7 @@ for pkgbase in ${args[@]:2}; do /usr/bin/svn mv -q -r HEAD "${svnrepo_from}/$file" "${svnrepo_to}/" done /usr/bin/svn rm --force -q "${svnrepo_from}" - /usr/bin/svn commit -q "${WORKDIR}/svn/${pkgbase}" -m "${0##*/}: moved ${pkgbase} from [${repo_from}] to [${repo_to}] (${pkgarch})" + tag_list="$tag_list, $pkgarch" for pkgname in ${pkgnames[@]}; do for tarch in ${tarches[@]}; do @@ -112,6 +113,8 @@ for pkgbase in ${args[@]:2}; do done fi done + tag_list="${tag_list#, }" + /usr/bin/svn commit -q "${WORKDIR}/svn/${pkgbase}" -m "${0##*/}: moved ${pkgbase} from [${repo_from}] to [${repo_to}] (${tag_list})" done for tarch in ${ARCHES[@]}; do |