[10:58] <xnox> how to get src package name for a binary package name? e.g. binary_package_publishing_history doesn't seem to have a link/field to src package name.
[11:05] <jtv> I wish I remembered... it was complicated, I think.
[11:06] <jtv> Not _very_ complicated, though.
[11:06] <jtv> Are you working in server-side python code, or the API, or..?
[11:06] <wgrant> xnox: It's not possible atm.
[11:06] <jtv> Ah.  Hi wgrant.  :)
[11:06] <wgrant> Morning jtv
[11:07] <jtv> Was there no way back up the reference graph?
[11:07] <wgrant> xnox: There's no reason it's not possible; there should be a binary_package_build attribute exported on binary_package_publishing_history
[11:07] <wgrant> Nope, no way. Longstanding bug.
[11:07] <jtv> Ouch.
[11:07] <wgrant> Well, there's deliberately no way to get to a source_package_publishing_history directly, as there can be multiple.
[11:07] <wgrant> But there should be a BPB
[11:08] <wgrant> A patch wouldn't be hard.
[11:08] <jtv> I thought there'd be a way through the BPPH.
[11:22] <cjwatson> If you can query for a build instead (e.g. archive.getBuildRecords) then that's a workaround