<pre style='margin:0'>
Umesh Singla (umeshksingla) pushed a commit to branch gsoc17-migrate
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/8c99f404ba04c97e6a3f6f76797cf75466c08b8d">https://github.com/macports/macports-base/commit/8c99f404ba04c97e6a3f6f76797cf75466c08b8d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8c99f404ba04c97e6a3f6f76797cf75466c08b8d
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Sun Jan 7 15:20:35 2018 +0100
<span style='display:block; white-space:pre;color:#404040;'> macports: Refactor obtaining os_* variables
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This helps clean up mportinit a bit and possibly makes this
</span><span style='display:block; white-space:pre;color:#404040;'> functionality re-usable.
</span>---
src/macports1.0/macports.tcl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
<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 3ab0483..95b350b 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;'>@@ -569,6 +569,8 @@ proc macports::_is_valid_developer_dir {dir} {
</span> # and minor versions, the OS platform, the OS endianess, and the macOS
# version (empty on non-macOS systems)
proc macports::_get_os_version {} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ global tcl_platform
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # set up platform info variables
set os_arch $tcl_platform(machine)
if {$os_arch eq "Power Macintosh"} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -628,7 +630,7 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
</span> package require registry2 2.0
package require machista 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global auto_path env tcl_platform \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global auto_path env \
</span> macports::autoconf::macports_conf_path \
macports::macports_user_dir \
macports::bootstrap_options \
</pre><pre style='margin:0'>
</pre>