Changeset 484 for branches/confman-1.9/confman.in
- Timestamp:
- 11/11/2009 14:21:33 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
confman.in (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
-
branches/confman-1.9/confman.in
r483 r484 189 189 190 190 function commit { 191 local msg status modules module modpath191 local msg status modules module symlink symlinks 192 192 local nocommit=true 193 193 local opt OPTIND OPTARG … … 211 211 wcopy_lock=$(conf_lock_wcopy) 212 212 213 for module in $(conf_get_recipe) ; do 214 modpath=$(${readlink_cmd} -m ${WORK_PATH}/${module}) 215 modules=${modules:+${modules} }${modpath} 213 for module in $(conf_get_recipe); do 214 modules=${modules:+${modules} }${module} 215 for symlink in $(find ${WORK_PATH}/${module} \ 216 -type l -exec ${readlink_cmd} -m {} \; -print) 217 do 218 symlink=$(conf_rel_path "${symlink}") 219 symlinks="${symlinks:+${symlinks} }${symlink}" 220 done 216 221 done 217 222 … … 219 224 conf_update_tree || conf_cleanExit 220 225 221 if status=$(get_status $modules ); then226 if status=$(get_status $modules $symlinks); then 222 227 nocommit=false 223 228 msg=$(get_log "$status") || conf_cleanExit … … 228 233 229 234 echo "Commit operation started" >&2 230 $nocommit || conf_commit "$(conf_get_recipe)" $msg|| return $?235 $nocommit || conf_commit_file $msg $modules $symlinks || return $? 231 236 for layer in $(conf_get_recipe) ; do 232 237 echo "Rolling on $layer..." … … 256 261 m) LOG_MESSAGE="$OPTARG"; LOG_MESSAGE_SET="true" ;; 257 262 F) LOG_FILE="$OPTARG" ;; 258 N) innercall=true ;;259 263 *) echo "Invalid option '-${OPTARG}'." >&4 260 264 print_usage 1 … … 274 278 $SUDO ${SUDO:+-v} 275 279 276 # This stuff we only do in the top-level call, not on recursive calls... 277 if ! conf_lock_is_recursive $wcopy_lock ; then 278 conf_update_tree || conf_cleanExit 279 if status=$(get_status $files) ; then 280 nocommit=false 281 msg=$(get_log "$status") || conf_cleanExit 282 rm -f "$status" 283 fi 284 echo "Installation operation started." >&2 285 $nocommit || conf_commit_file "$msg" "$files" || return $? 286 fi 287 288 for file in "$@" ; do 289 for layer in $(conf_get_recipe) ; do 290 conf_install $layer "$@" 291 done 292 for sing in $SINGULARITIES ; do 293 if [ "$sing" = "$file" ] ; then 294 conf_assemble_sing $file || conf_cleanExit 295 fi 296 done 280 conf_update_tree || conf_cleanExit 281 if status=$(get_status $files) ; then 282 nocommit=false 283 msg=$(get_log "$status") || conf_cleanExit 284 rm -f "$status" 285 fi 286 echo "Installation operation started." >&2 287 $nocommit || conf_commit_file "$msg" "$files" || return $? 288 289 for layer in $(conf_get_recipe) ; do 290 conf_install $layer "$@" 291 done 292 for file in $SINGULARITIES ; do 293 conf_assemble_sing $file || conf_cleanExit 297 294 done 298 295 conf_recordAction install … … 859 856 wcopy_lock=$(conf_lock_wcopy) 860 857 conf_ln $target $link $forced 861 conf_unlock_wcopy $ (wcopy_lock)858 conf_unlock_wcopy $wcopy_lock 862 859 } 863 860 … … 880 877 wcopy_lock=$(conf_lock_wcopy) 881 878 conf_chattr "$attr" "$value" "$@" 882 conf_unlock_wcopy $ (wcopy_lock)879 conf_unlock_wcopy $wcopy_lock 883 880 } 884 881
Note: See TracChangeset
for help on using the changeset viewer.
