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 the full NVR string...
- feed that to `fedpkg gitbuildhash`
...Yeah, this could work. I hadn't considered querying with fedpkg, so thanks a lot
for the tip!