Changeset 564 for branches


Ignore:
Timestamp:
12/16/2011 18:19:05 (5 months ago)
Author:
blee
Message:

Merge fix for #147 into confman-1.9.

Closes #147

Location:
branches/confman-1.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

  • branches/confman-1.9/confsync.in

    r556 r564  
    117117last_action=$(conf_lastact) 
    118118 
    119 if [ "x$last_action" = "xinstall" ] && [ $tar_revision -lt $sys_revision ] 
    120 then 
    121     echo "Error: File system may be dirty." \ 
    122         "A commit operation is recommended." >&2 
    123     echo "Error: $tarpath is out of date. Exiting without making changes." >&2 
    124     conf_markdirty 
    125     conf_cleanExit 1 
    126 fi 
    127  
    128 if [ -n "$sys_revision" ] ; then 
    129     if $FORCE && [ $tar_revision -lt $sys_revision ] ; then 
    130         echo "Error: $tarpath is out of date. Exiting without making changes." >&2 
     119if [ -n "${sys_revision}" ] ; then 
     120    if [ "${tar_revision}" -lt "${sys_revision}" ]; then 
     121        echo "Error: ${tarpath} is out of date. Exiting without making changes." >&2 
     122        conf_markdirty 
    131123        conf_cleanExit 1 
    132     elif ! $FORCE && [ $tar_revision -le $sys_revision ] ; then 
    133         $QUIET || echo "System is up to date." | conf_logger 
    134         conf_cleanExit 0 
     124    elif ! ${FORCE} && [ "${tar_revision}" -eq "${sys_revision}" ]; then 
     125        if [ "${last_action}" = "commit" -o "${last_action}" = "sync" ]; then 
     126            ${QUIET} || echo "System is up to date." | conf_logger 
     127            conf_cleanExit 0 
     128        fi 
    135129    fi 
    136130fi 
Note: See TracChangeset for help on using the changeset viewer.