mirror of
https://github.com/macports/mpbb.git
synced 2026-07-12 18:18:44 -07:00
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:
committed by
Clemens Lang
parent
22dd3cc862
commit
699347d5ed
@@ -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"}]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user