New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83149


Ignore:
Timestamp:
08/26/11 08:02:25 (4 years ago)
Author:
jmr@…
Message:

correctly treat distfiles and all_dist_files as lists in a couple places where not doing so broke quoting of filenames containing spaces (#28568)

Location:
trunk/base/src/port1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portchecksum.tcl

    r79593 r83149  
    8787        && [lsearch -exact $checksum_types [lindex $checksums_str 0]] >= 0} { 
    8888        # Convert to format #2 
    89         set checksums_str [linsert $checksums_str 0 $all_dist_files] 
     89        set checksums_str [linsert $checksums_str 0 [lindex $all_dist_files 0]] 
    9090        # We increased the size. 
    9191        incr nb_checksum 
  • trunk/base/src/port1.0/portfetch.tcl

    r82763 r83149  
    105105 
    106106# Set distfiles 
    107 default distfiles {[portfetch::suffix $distname]} 
     107default distfiles {[list [portfetch::suffix $distname]]} 
    108108default dist_subdir {${name}} 
    109109 
     
    227227    if {[info exists patchfiles]} { 
    228228        foreach file $patchfiles { 
    229             if {![file exists $filespath/$file]} { 
     229            if {![file exists "${filespath}/${file}"]} { 
    230230                set distsite [getdisttag $file] 
    231231                set file [getdistname $file] 
     
    250250    if {[info exists distfiles]} { 
    251251        foreach file $distfiles { 
    252             if {![file exists $filespath/$file]} { 
     252            if {![file exists "${filespath}/${file}"]} { 
    253253                set distsite [getdisttag $file] 
    254254                set file [getdistname $file] 
Note: See TracChangeset for help on using the changeset viewer.