library/roles/R/templates/update_r_packages.sh.j2: Run a 'svn cleanup' before the 'svn update', to be on the safe side.

This commit is contained in:
Andrea Dell'Amico 2018-02-22 12:09:53 +01:00
parent 9b59689a87
commit 1fd06c6f83
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ function get_data_files_from_svn() {
if [ -d $R_PKGS_SVN_BASE_DIR/$R_PKGS_SVN_DIR ] ; then
logger "update_r_packages: SVN update"
cd $R_PKGS_SVN_BASE_DIR/$R_PKGS_SVN_DIR
SVN_CLEANUP_OP=$( svn cleanup )
SVN_UPDATE_OP=$( svn update | tail -1 | grep Updated >/dev/null 2>&1 )
SVN_UPDATE_STATUS=$?
else