summaryrefslogtreecommitdiffstats
path: root/db-move
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-20 19:23:07 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-03-11 16:27:10 +0100
commit9b7b2a7e774f307b6b5ab398908e883364af7247 (patch)
tree7ca67b25cda5844f44db938cf0adcf1dfaae4441 /db-move
parent1ef058dad91a5ca82db2744776251a2ab68bcf90 (diff)
downloaddbscripts-9b7b2a7e774f307b6b5ab398908e883364af7247.tar.gz
dbscripts-9b7b2a7e774f307b6b5ab398908e883364af7247.tar.xz
Add per-repo SVN configs
This could be useful if we move community to a separate SVN repo Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move7
1 files changed, 6 insertions, 1 deletions
diff --git a/db-move b/db-move
index ff9677b..e4f2fef 100755
--- a/db-move
+++ b/db-move
@@ -21,6 +21,11 @@ ftppath_from="$FTP_BASE/$repofrom/os/$_arch/"
ftppath_to="$FTP_BASE/$repoto/os/$_arch/"
svnrepo_from="$repofrom-$_arch"
svnrepo_to="$repoto-$_arch"
+svnpath="$(get_svnpath $repoto)"
+if [ "$svnpath" != "$(get_svnpath $repofrom" ]; then
+ echo "ERROR: Cannot move packages across SVN repos"
+ echo " A move must be within the same svn repo"
+fi
[ "$UID" = "" ] && UID=$(uid)
@@ -54,7 +59,7 @@ repo_lock $repofrom $_arch
/bin/mkdir -p "$WORKDIR"
cd "$WORKDIR"
-/usr/bin/svn checkout -N $SVN_PATH checkout
+/usr/bin/svn checkout -N $svnpath checkout
cd checkout
/usr/bin/svn up -q $packagename