upload/koji: return the CGImport result

Currently, only build id is returned, more will come when needed.
This commit is contained in:
Ondřej Budai 2020-05-15 14:49:21 +02:00 committed by Tom Gundersen
parent e43eb4da7b
commit 87a7e90c98
2 changed files with 11 additions and 7 deletions

View file

@ -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)
}