mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-09-16 02:26:12 +00:00
Show output architecture in readable info
This commit is contained in:
@@ -302,6 +302,9 @@ func (entry *BPMDatabaseEntry) CreateReadableInfo(rootDir string) string {
|
|||||||
ret = append(ret, "URL: "+entry.Info.Url)
|
ret = append(ret, "URL: "+entry.Info.Url)
|
||||||
ret = append(ret, "License: "+entry.Info.License)
|
ret = append(ret, "License: "+entry.Info.License)
|
||||||
ret = append(ret, "Architecture: "+entry.Info.Arch)
|
ret = append(ret, "Architecture: "+entry.Info.Arch)
|
||||||
|
if entry.Info.Type == "source" && entry.Info.OutputArch != "" && entry.Info.OutputArch != GetArch() {
|
||||||
|
ret = append(ret, "Output architecture: "+entry.Info.OutputArch)
|
||||||
|
}
|
||||||
ret = append(ret, "Type: "+entry.Info.Type)
|
ret = append(ret, "Type: "+entry.Info.Type)
|
||||||
appendArray("Dependencies", entry.Info.Depends, true)
|
appendArray("Dependencies", entry.Info.Depends, true)
|
||||||
if entry.Info.Type == "source" {
|
if entry.Info.Type == "source" {
|
||||||
|
|||||||
@@ -526,6 +526,9 @@ func (pkgInfo *PackageInfo) CreateReadableInfo(rootDir string) string {
|
|||||||
ret = append(ret, "URL: "+pkgInfo.Url)
|
ret = append(ret, "URL: "+pkgInfo.Url)
|
||||||
ret = append(ret, "License: "+pkgInfo.License)
|
ret = append(ret, "License: "+pkgInfo.License)
|
||||||
ret = append(ret, "Architecture: "+pkgInfo.Arch)
|
ret = append(ret, "Architecture: "+pkgInfo.Arch)
|
||||||
|
if pkgInfo.Type == "source" && pkgInfo.OutputArch != "" && pkgInfo.OutputArch != GetArch() {
|
||||||
|
ret = append(ret, "Output architecture: "+pkgInfo.Arch)
|
||||||
|
}
|
||||||
ret = append(ret, "Type: "+pkgInfo.Type)
|
ret = append(ret, "Type: "+pkgInfo.Type)
|
||||||
appendArray("Dependencies", pkgInfo.Depends)
|
appendArray("Dependencies", pkgInfo.Depends)
|
||||||
if pkgInfo.Type == "source" {
|
if pkgInfo.Type == "source" {
|
||||||
|
|||||||
Reference in New Issue
Block a user