<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/d4f49041852b9cf42e47d373cce7a3239d76a7fa">https://github.com/macports/macports-base/commit/d4f49041852b9cf42e47d373cce7a3239d76a7fa</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d4f4904 Avoid rev-upgrade permissions errors
</span>d4f4904 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d4f49041852b9cf42e47d373cce7a3239d76a7fa
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Dec 10 18:28:55 2016 +1100
<span style='display:block; white-space:pre;color:#404040;'> Avoid rev-upgrade permissions errors
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Check that the prefix is writable when running rev-upgrade in rebuild
</span><span style='display:block; white-space:pre;color:#404040;'> mode, and fail early with a good message if not.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/47592
</span>---
src/port/port.tcl | 3 +++
1 file changed, 3 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port/port.tcl b/src/port/port.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 3193239..5160f7f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2771,6 +2771,9 @@ proc action_upgrade { action portlist opts } {
</span> }
proc action_revupgrade { action portlist opts } {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$macports::revupgrade_mode eq "rebuild" && [prefix_unwritable]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> set status [macports::revupgrade $opts]
switch $status {
1 {
</pre><pre style='margin:0'>
</pre>