[98734] trunk/base/src/registry2.0/portimage.tcl
mfeiri at macports.org
mfeiri at macports.org
Sat Oct 13 18:28:53 PDT 2012
Revision: 98734
http://trac.macports.org//changeset/98734
Author: mfeiri at macports.org
Date: 2012-10-13 18:28:53 -0700 (Sat, 13 Oct 2012)
Log Message:
-----------
Use HFS compression during port activation, closes #36560
Modified Paths:
--------------
trunk/base/src/registry2.0/portimage.tcl
Modified: trunk/base/src/registry2.0/portimage.tcl
===================================================================
--- trunk/base/src/registry2.0/portimage.tcl 2012-10-13 23:20:10 UTC (rev 98733)
+++ trunk/base/src/registry2.0/portimage.tcl 2012-10-14 01:28:53 UTC (rev 98734)
@@ -280,7 +280,12 @@
}
default {
ui_debug "activating file: $dstfile"
- ::file rename $srcfile $dstfile
+ if {${macports::os_platform} == "darwin" && ${macports::os_major} >= 10 && [::file type $srcfile] != "link"} {
+ system "ditto --hfsCompression '${srcfile}' '${dstfile}'"
+ ::file delete -- $srcfile
+ } else {
+ ::file rename $srcfile $dstfile
+ }
return 1
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121013/28e0ee11/attachment.html>
More information about the macports-changes
mailing list