koji: use the host arch as the buildroot and image arch in CGImport metadata
As suggested by brew maintainers Tomáš Kopeček and Lubomír Sedlář.
This commit is contained in:
parent
c64d46416e
commit
a0832d22e0
1 changed files with 3 additions and 3 deletions
|
|
@ -257,7 +257,7 @@ func RunJob(job worker.Job, store string, kojiServers map[string]koji.GSSAPICred
|
|||
ID: 1,
|
||||
Host: koji.Host{
|
||||
Os: hostOS,
|
||||
Arch: "noarch",
|
||||
Arch: common.CurrentArch(),
|
||||
},
|
||||
ContentGenerator: koji.ContentGenerator{
|
||||
Name: "osbuild",
|
||||
|
|
@ -265,7 +265,7 @@ func RunJob(job worker.Job, store string, kojiServers map[string]koji.GSSAPICred
|
|||
},
|
||||
Container: koji.Container{
|
||||
Type: "nspawn",
|
||||
Arch: "noarch",
|
||||
Arch: common.CurrentArch(),
|
||||
},
|
||||
Tools: []koji.Tool{},
|
||||
RPMs: osbuildStagesToRPMs(result.Build.Stages),
|
||||
|
|
@ -276,7 +276,7 @@ func RunJob(job worker.Job, store string, kojiServers map[string]koji.GSSAPICred
|
|||
BuildRootID: 1,
|
||||
Filename: options.Filename,
|
||||
FileSize: uint64(filesize),
|
||||
Arch: "noarch",
|
||||
Arch: common.CurrentArch(),
|
||||
ChecksumType: "md5",
|
||||
MD5: hash,
|
||||
Type: "image",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue