Skip to content
Permalink
Browse files

macports: Refactor obtaining os_* variables

This helps clean up mportinit a bit and possibly makes this
functionality re-usable.
  • Loading branch information
neverpanic committed Jan 7, 2018
1 parent 1845379 commit 8c99f404ba04c97e6a3f6f76797cf75466c08b8d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/macports1.0/macports.tcl
@@ -569,6 +569,8 @@ proc macports::_is_valid_developer_dir {dir} {
# and minor versions, the OS platform, the OS endianess, and the macOS
# version (empty on non-macOS systems)
proc macports::_get_os_version {} {
global tcl_platform

# set up platform info variables
set os_arch $tcl_platform(machine)
if {$os_arch eq "Power Macintosh"} {
@@ -628,7 +630,7 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
package require registry2 2.0
package require machista 1.0

global auto_path env tcl_platform \
global auto_path env \
macports::autoconf::macports_conf_path \
macports::macports_user_dir \
macports::bootstrap_options \

0 comments on commit 8c99f40

Please sign in to comment.
You can’t perform that action at this time.