Re: Koji query to get the source commit for a build

2021-02-26 Thread Audrey Toskin
> Does "fedpkg gitbuildhash" do what you want? Hmm, not by itself, mostly because I need to already know the version-release numbers I'm looking up. However, it could immensely simplify the regex I was using. Now it should look more like - `koji list-history --package="$pkg_name"` - grep for t

Re: Koji query to get the source commit for a build

2021-02-26 Thread Ken Dreyer
Does "fedpkg gitbuildhash" do what you want? Source is gitbuildhash() method in https://pagure.io/rpkg/blob/master/f/pyrpkg/__init__.py On Fri, Feb 26, 2021, 5:54 PM Audrey Toskin wrote: > I'm interested in looking up the source used for different builds on Koji > -- particularly the exact co

Koji query to get the source commit for a build

2021-02-26 Thread Audrey Toskin
I'm interested in looking up the source used for different builds on Koji -- particularly the exact commit to the spec file's repo, when building from SCM -- in a scriptable way. `koji list-history` has the most filtering options, so it seems like it *ought* to work... but I can't figure out ho