summaryrefslogtreecommitdiffstats
path: root/db-move
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-12 11:41:04 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-06-10 11:22:30 +0200
commit75a16bafa3d79499af710414c57ff50451b158a3 (patch)
tree295ed2cf237affacc48fe6bef754875773eb989d /db-move
parent33cfe12c34747bd52e2730e45566e5b21cd76153 (diff)
downloaddbscripts-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-xdb-move5
1 files changed, 4 insertions, 1 deletions
diff --git a/db-move b/db-move
index a23aebe..2bb2ea8 100755
--- a/db-move
+++ b/db-move
@@ -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