Ticket #25246: portextract.tcl.distfiles-with-spaces.diff

File portextract.tcl.distfiles-with-spaces.diff, 1.1 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • src/port1.0/portextract.tcl

     
    124124    foreach distfile [option extract.only] {
    125125        ui_info "$UI_PREFIX [format [msgcat::mc "Extracting %s"] $distfile]"
    126126        if {[file exists $filespath/$distfile]} {
    127             option extract.args "$filespath/$distfile"
     127            option extract.args "\\\"$filespath/$distfile\\\""
    128128        } elseif {![file exists "[option distpath]/$distfile"] && !$usealtworkpath && [file exists "${altprefix}[option distpath]/$distfile"]} {
    129             option extract.args "${altprefix}[option distpath]/$distfile"
     129            option extract.args "\\\"${altprefix}[option distpath]/$distfile\\\""
    130130        } else {
    131             option extract.args "[option distpath]/$distfile"
     131            option extract.args "\\\"[option distpath]/$distfile\\\""
    132132        }
    133133        if {[catch {command_exec extract} result]} {
    134134            return -code error "$result"