Ticket #36560: hfscompression2.diff

File hfscompression2.diff, 672 bytes (added by mfeiri, 12 years ago)
  • base/src/registry2.0/portimage.tcl

     
    419419        cd $startpwd
    420420    }
    421421
     422    if {${macports::os_platform} == "darwin" && ${macports::os_major} >= 10} {
     423        ui_debug "Using ditto to apply HFS compression"
     424        set unarchivedir $extractdir
     425        set extractdir [mkdtemp [::file dirname $location]/mpextractXXXXXXXX]
     426        system "ditto --hfsCompress $unarchivedir $extractdir"
     427        ::file delete -force $unarchivedir
     428    }
     429
    422430    return $extractdir
    423431}
    424432