diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-02-20 10:23:07 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-03-11 08:27:10 -0700 |
commit | 9b7b2a7e774f307b6b5ab398908e883364af7247 (patch) | |
tree | 7ca67b25cda5844f44db938cf0adcf1dfaae4441 /db-move | |
parent | 1ef058dad91a5ca82db2744776251a2ab68bcf90 (diff) |
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-x | db-move | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |