Ticket #2978: portchecksum.diff

File portchecksum.diff, 1.4 KB (added by opendarwin.org@…, 19 years ago)

Clarify message wording for checksum failures

  • src/port1.0/portchecksum.tcl

    RCS file: /Volumes/src/cvs/od/projects/darwinports/base/src/port1.0/portchecksum.tcl,v
    retrieving revision 1.40
    diff -u -r1.40 portchecksum.tcl
     
    168168                # check that there is at least one checksum for the distfile.
    169169                if {$portfile_checksums == -1} {
    170170                        ui_error "[format [msgcat::mc "No checksum set for %s"] $distfile]"
    171                         ui_info "[format [msgcat::mc "Correct checksum: %s md5 %s"] $distfile [calc_md5 $fullpath]]"
     171                        ui_info "[format [msgcat::mc "Distfile checksum: %s md5 %s"] $distfile [calc_md5 $fullpath]]"
    172172                        set fail yes
    173173                } else {
    174174                        # iterate on this list to check the actual values.
     
    178178                                        ui_debug "[format [msgcat::mc "Correct (%s) checksum for %s"] $type $distfile]"
    179179                                } else {
    180180                                        ui_error "[format [msgcat::mc "Checksum (%s) mismatch for %s"] $type $distfile]"
    181                                         ui_info "[format [msgcat::mc "Correct checksum: %s %s %s"] $distfile $type $calculated_sum]"
     181                                        ui_info "[format [msgcat::mc "Portfile checksum: %s %s %s"] $distfile $type $sum]"
     182                                        ui_info "[format [msgcat::mc "Distfile checksum: %s %s %s"] $distfile $type $calculated_sum]"
    182183                                       
    183184                                        # Raise the failure flag
    184185                                        set fail yes