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.
This commit is contained in:
Lawrence Velázquez
2018-03-10 18:52:45 +01:00
committed by Clemens Lang
parent 22dd3cc862
commit 699347d5ed
+2 -1
View File
@@ -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"}]
}
}