Changeset 519 for trunk


Ignore:
Timestamp:
05/20/2011 11:36:45 (12 months ago)
Author:
joshu
Message:

Addresses blee's worries about a race condition in confman updates by specifying
a revision using the -r flag for svn.

See #10.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confmanlib.sh.in

    r515 r519  
    140140    [ -r $(conf_recipe_dir)/${recipe} ] || exit 1 
    141141    @SVN@ update $args $(conf_recipe_dir)/${recipe} 
     142    if ! [[ $args =~ .*-r.* ]]; then 
     143        # make sure that svn is pulling the same revision everywhere 
     144        args="${args} -r $(@SVN@ info $(conf_recipe_dir)/${recipe} | \ 
     145            awk '/^Revision:/ { print $2 }')" 
     146    fi 
    142147    for module in $(conf_get_recipe $(conf_recipe_dir)/${recipe}); do 
    143148        relevant_files="$relevant_files ${WORK_PATH}/${module}" 
Note: See TracChangeset for help on using the changeset viewer.