Revision: 98281 http://trac.macports.org//changeset/98281 Author: jmr@macports.org Date: 2012-10-01 12:29:02 -0700 (Mon, 01 Oct 2012) Log Message: ----------- allow pkg target to write to package.destpath Modified Paths: -------------- trunk/base/src/port1.0/portsandbox.tcl Modified: trunk/base/src/port1.0/portsandbox.tcl =================================================================== --- trunk/base/src/port1.0/portsandbox.tcl 2012-10-01 17:15:55 UTC (rev 98280) +++ trunk/base/src/port1.0/portsandbox.tcl 2012-10-01 19:29:02 UTC (rev 98281) @@ -41,7 +41,7 @@ # command line usage would be: # sandbox-exec -p '(version 1) (allow default) (deny file-write*) (allow file-write* <filter>)' some-command proc portsandbox::set_profile {target} { - global os.major portsandbox_profile workpath distpath altprefix + global os.major portsandbox_profile workpath distpath altprefix package.destpath switch $target { activate - @@ -60,6 +60,9 @@ clean { set allow_dirs [list $distpath] } + pkg { + set allow_dirs [list ${package.destpath}] + } } # TODO: remove altprefix support