Changeset 167


Ignore:
Timestamp:
07/05/2007 18:14:12 (5 years ago)
Author:
arjun
Message:

BugID: 5906 changed any instances of clean_exit or cleanexit to cleanExit

Location:
trunk/confman
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman/confman

    r145 r167  
    6262function update { 
    6363        if [ -z $* ] ; then 
    64                 conf_update_tree || conf_cleanexit 
     64                conf_update_tree || conf_cleanExit 
    6565        else 
    6666                print_usage 1 
     
    8484                ${EDITOR} $msg 
    8585                sudo -v 
    86                 update || conf_cleanexit 
     86                update || conf_cleanExit 
    8787 
    8888                echo "Commit operation started" >&2 
     
    117117                ${EDITOR} $msg 
    118118                sudo -v 
    119                 update || conf_cleanexit 
     119                update || conf_cleanExit 
    120120 
    121121                echo "Installation operation started." >&2 
     
    125125                done 
    126126                for file in $SINGULARITIES ; do 
    127                         conf_assemble_sing $file || conf_cleanexit 
     127                        conf_assemble_sing $file || conf_cleanExit 
    128128                done 
    129129        conf_recordAction install 
     
    184184        if sudo [ -L $file ] ; then 
    185185                echo "$file is a symbolic link!" >&4 
    186                 conf_cleanexit 
     186                conf_cleanExit 
    187187        fi 
    188188 
     
    492492        else 
    493493                echo "Rolling $module back to $checkpoint $clock" >&2 
    494                 conf_rollback $module $checkpoint $clock || conf_cleanexit 
     494                conf_rollback $module $checkpoint $clock || conf_cleanExit 
    495495                for layer in $LAYERS ; do 
    496496                        echo "Rolling on $layer..." 
    497                         conf_rollout $layer || conf_cleanexit 
     497                        conf_rollout $layer || conf_cleanExit 
    498498                done 
    499499 
    500500                for file in $SINGULARITIES ; do 
    501                         conf_assemble_sing $file || conf_cleanexit 
     501                        conf_assemble_sing $file || conf_cleanExit 
    502502                done 
    503503                echo "Rollback succeeded." >&2 
     
    521521        if [ ! -d "${WORK_PATH}/${oldmod}" ] ; then 
    522522                echo "${MYNAME}: Error: ${WORK_PATH}/${oldmod} doesn't exist" >&4 
    523                 conf_cleanexit 
     523                conf_cleanExit 
    524524        fi 
    525525        if [ -e "${WORK_PATH}/${newmod}" ] ; then 
    526526                echo "${MYNAME}: Error: ${WORK_PATH}/${newmod}: file exists" >&4 
    527                 conf_cleanexit 
     527                conf_cleanExit 
    528528        fi 
    529529        conf_rename $oldmod $newmod 
  • trunk/confman/confmancommon.sh

    r165 r167  
    8686 
    8787# And we'll set a trap: 
    88 trap "conf_cleanexit" SIGINT SIGTERM SIGHUP 
     88trap "conf_cleanExit" SIGINT SIGTERM SIGHUP 
    8989 
  • trunk/confman/confmanlib.sh

    r166 r167  
    377377        svn mv ${WORK_PATH}/${oldmod} ${WORK_PATH}/${newmod} || \ 
    378378                {       echo "There was a problem renaming the modules." >&4 ; \ 
    379                         conf_clean_exit 1  
     379                        conf_cleanExit 1  
    380380                } 
    381381        svn mv ${WORK_PATH}/${REPO_CHECKPTS}/${oldmod} \ 
    382382                        ${WORK_PATH}/${REPO_CHECKPTS}/${newmod} || \ 
    383383                {       echo "There was a problem renaming the checkpts." >&4 ; \ 
    384                         conf_clean_exit 1  
     384                        conf_cleanExit 1  
    385385                } 
    386386 
    387387        svn update ${WORK_PATH} || \ 
    388388                {       echo "Your working copy didn't update correctly." >&4 ; \ 
    389                         conf_clean_exit 1  
     389                        conf_cleanExit 1  
    390390                } 
    391391        svn commit -m "Renaming ${oldmod} to ${newmod}, phase 1." \ 
    392392                ${WORK_PATH}/{,${REPO_CHECKPTS}}/{${oldmod},${newmod}} || \ 
    393                 {       echo "Committing the changes failed." >&4 ; conf_clean_exit 1  
     393                {       echo "Committing the changes failed." >&4 ; conf_cleanExit 1  
    394394                } 
    395395 
     
    404404        svn update ${WORK_PATH} || \ 
    405405                {       echo "Your working copy didn't update correctly." >&4 ; \ 
    406                         conf_clean_exit 1  
     406                        conf_cleanExit 1  
    407407                } 
    408408        svn commit -m "Renaming ${oldmod} to ${newmod}, phase 2." \ 
    409409                ${WORK_PATH}/${newmod} || \ 
    410                 {       echo "Committing the changes failed." >&4 ; conf_clean_exit 1  
     410                {       echo "Committing the changes failed." >&4 ; conf_cleanExit 1  
    411411                } 
    412412 
     
    418418        svn update ${WORK_PATH} || \ 
    419419                {       echo "Your working copy didn't update correctly." >&4 ; \ 
    420                         conf_clean_exit 1  
     420                        conf_cleanExit 1  
    421421                } 
    422422        svn commit -m "Renaming ${oldmod} to ${newmod}, complete." \ 
    423423                ${WORK_PATH}/${newmod} || \ 
    424                 {       echo "Committing the changes failed." >&4 ; conf_clean_exit 1  
     424                {       echo "Committing the changes failed." >&4 ; conf_cleanExit 1  
    425425                } 
    426426} 
     
    536536# The SIGNAL seems to kill the logger process spawned by the parent  
    537537# process, which is receiving its input from our fd 2. 
    538 function conf_cleanexit { 
     538function conf_cleanExit { 
    539539    echo "Received a signal. Exiting cleanly." | conf_logger 
    540540        echo "Abort, Abort! Patience is a virtue." >&4 
  • trunk/confman/confsync.sh

    r157 r167  
    5858for layer in $LAYERS ; do 
    5959        echo "Rolling on $layer..." 
    60         conf_rollout $layer || conf_cleanexit 
     60        conf_rollout $layer || conf_cleanExit 
    6161done 
    6262for file in $SINGULARITIES ; do 
    6363    echo "Assembing singularity $file..." 
    64         conf_assemble_sing $file || conf_cleanexit 
     64        conf_assemble_sing $file || conf_cleanExit 
    6565done 
    6666conf_markclean 
Note: See TracChangeset for help on using the changeset viewer.