<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/68016b825bdd8d7f422e6216a397c4c57cecde01">https://github.com/macports/macports-base/commit/68016b825bdd8d7f422e6216a397c4c57cecde01</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 68016b8 Add prefix_unwritable check for selfupdate
</span>68016b8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 68016b825bdd8d7f422e6216a397c4c57cecde01
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Dec 10 23:23:50 2016 +1100
<span style='display:block; white-space:pre;color:#404040;'> Add prefix_unwritable check for selfupdate
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fail early with a good message if the user forgot to use sudo or
</span><span style='display:block; white-space:pre;color:#404040;'> otherwise can't write to the prefix.
</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/48439
</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 ab83c43..74b4728 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;'>@@ -2674,6 +2674,9 @@ proc action_select { action portlist opts } {
</span>
proc action_selfupdate { action portlist opts } {
global global_options
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[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> if { [catch {macports::selfupdate [array get global_options] base_updated} result ] } {
global errorInfo
ui_debug "$errorInfo"
</pre><pre style='margin:0'>
</pre>