<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/e676c8caa36144b174ca2ede2c48615f5e2c34de">https://github.com/macports/macports-base/commit/e676c8caa36144b174ca2ede2c48615f5e2c34de</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e676c8caa36144b174ca2ede2c48615f5e2c34de
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Dec 28 17:50:53 2016 +1100
<span style='display:block; white-space:pre;color:#404040;'> Rearrange sources.conf checks
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Put the check that ensures a default source is set after the one that
</span><span style='display:block; white-space:pre;color:#404040;'> makes sure any sources are set.
</span>---
src/macports1.0/macports.tcl | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 33962e4..215fb87 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -757,13 +757,6 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
</span> }
}
close $fd
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Make sure the default port source is defined. Otherwise
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # [macports::getportresourcepath] fails when the first source doesn't
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # contain _resources.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![info exists sources_default]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "No default port source specified in ${sources_conf}, using last source as default"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set sources_default [lindex $sources end]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span>
if {![info exists sources]} {
if {[file isdirectory ports]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -772,6 +765,13 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
</span> return -code error "No sources defined in $sources_conf"
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Make sure the default port source is defined. Otherwise
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # [macports::getportresourcepath] fails when the first source doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # contain _resources.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![info exists sources_default]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "No default port source specified in ${sources_conf}, using last source as default"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sources_default [lindex $sources end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
if {[info exists variants_conf]} {
if {[file exists $variants_conf]} {
</pre><pre style='margin:0'>
</pre>