<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch release-2.4
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/88c62dba72b499a26f79b2aae18df9c05fd7d38a">https://github.com/macports/macports-base/commit/88c62dba72b499a26f79b2aae18df9c05fd7d38a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/release-2.4 by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 88c62db Warn when using unsigned rsync for base or ports
</span>88c62db is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 88c62dba72b499a26f79b2aae18df9c05fd7d38a
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Feb 15 04:03:59 2017 +1100
<span style='display:block; white-space:pre;color:#404040;'> Warn when using unsigned rsync for base or ports
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/53414
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit bebd94ad0415b859b37a9887dfae102b45e70590)
</span>---
src/macports1.0/macports.tcl | 8 ++++++++
1 file changed, 8 insertions(+)
<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 ce14a67..9db464d 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;'>@@ -748,6 +748,10 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
</span> set sources_default [concat [list $url] $flags]
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string match rsync://*rsync.macports.org/release/ports/ $url]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "MacPorts is configured to use an unsigned source for the ports tree.\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Please edit sources.conf and change '$url' to '[string range $url 0 end-6]tarballs/ports.tar'."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> lappend sources [concat [list $url] $flags]
} else {
ui_warn "$sources_conf specifies invalid source '$line', ignored."
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -924,6 +928,10 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
</span> if {![info exists rsync_dir]} {
global macports::rsync_dir
set macports::rsync_dir macports/release/tarballs/base.tar
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[string range $rsync_dir end-3 end] ne ".tar" && [string match *.macports.org ${macports::rsync_server}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "MacPorts is configured to use an unsigned source for selfupdate.\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Please edit macports.conf and change the rsync_dir setting to\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+match macports.conf.default."
</span> }
if {![info exists rsync_options]} {
global macports::rsync_options
</pre><pre style='margin:0'>
</pre>