Changeset b674606


Ignore:
Timestamp:
07/17/13 09:47:33 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
aa5ee83
Parents:
2173f9c5
Message:

When a binary diff patch fails to match the expected checksum, lets exit immediately, no
point in continuing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbi-manager

    r8f0c62d rb674606  
    25452545                sha2="`cat ${PBI_EXTRACTDIR}/${_tFile}.sha256`" 
    25462546                if [ "$sha1" != "$sha2" ] ; then 
    2547                         echo "Warning: Checksum failed for ${_tFile}, skipping." 
    2548                         continue 
     2547                        exit_err "Error: Checksum failed for ${_tFile}, you may need to re-install this PBI." 
    25492548                fi 
    25502549 
     
    53345333                fi 
    53355334                start_pbi_updateapp "single" 
     5335                exit $? 
    53365336        fi 
    53375337} 
     
    54055405        if [ -z "${PBI_REPO}" ]; then 
    54065406                rm "${PBI_DBAPPDIR}/${PBI_UPDATEAPP}/.updating" 
    5407                 return 
     5407                return 1 
    54085408        else 
    54095409                local _repoID=`ls ${PBI_DBREPODIR}/*.${PBI_REPO} | cut -d '.' -f 1 | sed "s|${PBI_DBREPODIR}/||g"` 
Note: See TracChangeset for help on using the changeset viewer.