kojiclient = koji.ClientSession('http://koji.fedoraproject.org/kojihub', {})
r = kojiclient.search("osbs-client", "package", "glob")
r = kojiclient.listBuilds(r[0]["id"])
for b in r:
if b["version"] == "0.23":
l = kojiclient.listBuildRPMs(b["build_id"])
for i in l:
if i["arch"] == "src":
print("https://kojipkgs.fedoraproject.org//packages/%s/%s/%s/%s/%s.src.rpm" %(i["name"], i["version"], i["release"], i["arch"], i["nvr"]))
Created
May 11, 2016 13:28
-
-
Save vpavlin/009fab69a25ada53545988139e2fb65c to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment