Hide Forgot
d = dnf.base.Base(...) d.fill_sack(load_system_repo=False, load_available_repos=False) pkg = d.add_remote_rpm(...) pkg.sourcerpm -> None pkg.sourcerpm should contain srpm filename
We will investigate whether the bug is in hawkey part or libsolv. Dan, can oyu post output of `rpm -qp <path>.rpm --qf "%{Sourcerpm}\n"`, please? Was the rpm built from srpm or spec file?
It was built from spec. The query returns the field as expected, it's also included in repodata.
Proposed fix https://github.com/rpm-software-management/libhif/pull/116
Fixed as part of DNF 2.0. Will be available at some point soonish.