Bug 227513
Summary: | rpm --queryformat %{SOURCE} doesn't work with --specfile | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Nick Leverton <nick> |
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 13:19:04 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nick Leverton
2007-02-06 16:02:37 UTC
Try creating a srpm before querying, not hard. There are a large number of difficulties with the --specfile querying that are not easily solved. Thanks, but ... build an SRPM to see if the sources are up to date so that I can then build an SRPM ? I'm not sure that always hangs together. It depends on the sources at least being all present in the first place. I think it's probably easier not to reply on rpm for querying specfiles. But I'll have a quick look at the source and see if I can understand why these two tags are so hard to implement usefully. Nick The fundamental problem is that RPMTAG_SOURCE (and RPMTAG_PATCH) are added just before packaging a source rpm, not during parsing of a spec file. So --specfile which parses the specfile, and then queries the tags within binary headers, cannot query info that doesn't exist. Note binary, not source, rpm header(s) used for querying as well. Fixed in rpm cvs, should be in rpm-4.4.9-0.2 when built. UPSTREAM Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue. |