Bug 1327617 - local packages don't contain 'sourcerpm' information
Summary: local packages don't contain 'sourcerpm' information
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: hawkey
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-15 13:28 UTC by Daniel Mach
Modified: 2016-07-21 14:10 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-21 14:10:35 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1335959 0 unspecified CLOSED dnf repoquery --srpm does not work 2021-02-22 00:41:40 UTC

Internal Links: 1335959

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.


Note You need to log in before you can comment on or make changes to this bug.