Ticket #36560: hfscompression.diff

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

     
    280280        }
    281281        default {
    282282            ui_debug "activating file: $dstfile"
    283             ::file rename $srcfile $dstfile
     283            if {${macports::os_platform} == "darwin" && ${macports::os_major} >= 10  && [::file type $srcfile] != "link"} {
     284                system "ditto --hfsCompression '${srcfile}' '${dstfile}'"
     285                ::file delete -- $srcfile
     286            } else {
     287                ::file rename $srcfile $dstfile
     288            }
    284289            return 1
    285290        }
    286291    }