summaryrefslogtreecommitdiff
path: root/db-move
diff options
context:
space:
mode:
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