upload/koji: return the CGImport result
Currently, only build id is returned, more will come when needed.
This commit is contained in:
parent
e43eb4da7b
commit
87a7e90c98
2 changed files with 11 additions and 7 deletions
|
|
@ -100,11 +100,11 @@ func main() {
|
|||
},
|
||||
}
|
||||
|
||||
err = k.CGImport(build, buildRoots, output, dir)
|
||||
result, err := k.CGImport(build, buildRoots, output, dir)
|
||||
if err != nil {
|
||||
println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Printf("Success!\n")
|
||||
fmt.Printf("Success, build id: %d\n", result.BuildID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue