Skip to content
Permalink
Browse files

supported-archs: Print all archs instead of nothing

When a port omits "supported_archs", it is implying that it supports all
architectures. In this case, output an explicit list instead of nothing.
  • Loading branch information
larryv authored and neverpanic committed Dec 1, 2016
1 parent 22dd3cc commit 699347d5edd654ccc991d943beee0785be709050
Showing with 2 additions and 1 deletion.
  1. +2 −1 tools/supported-archs.tcl
@@ -57,6 +57,7 @@ if {[info exists portinfo(porturl)]} {
if {[catch {set mport [mportopen $portinfo(porturl) [list subport $portname] {}]}]} {
ui_warn "failed to open port: $portname"
} else {
puts [_mportkey $mport supported_archs]
set archs [_mportkey $mport supported_archs]
puts [expr {$archs ne "" ? $archs : "x86_64 i386 ppc64 ppc"}]
}
}

0 comments on commit 699347d

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