Bug 1327617

Summary: local packages don't contain 'sourcerpm' information
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: hawkeyAssignee: Michael Mráka <mmraka>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmach, ignatenko, jsilhan, mluscon, mmraka, packaging-team-maint, pnemade, RadekHolyPublic, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-21 14:10:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daniel Mach 2016-04-15 13:28:51 UTC
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

Comment 1 Honza Silhan 2016-04-15 13:43:02 UTC
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?

Comment 2 Daniel Mach 2016-04-15 13:54:20 UTC
It was built from spec.
The query returns the field as expected, it's also included in repodata.

Comment 3 Michael Mráka 2016-05-04 14:33:58 UTC
Proposed fix
https://github.com/rpm-software-management/libhif/pull/116

Comment 4 Igor Gnatenko 2016-07-21 14:10:35 UTC
Fixed as part of DNF 2.0. Will be available at some point soonish.