Bug 717534
| Summary: | extraneous blanks in rpm -q --requires output | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ralf Corsepius <rc040203> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | ffesti, jnovy, pmatilai |
| Target Milestone: | --- | Keywords: | Upstream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-31 06:54:09 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
Ralf Corsepius
2011-06-29 07:09:34 UTC
Not exactly intentional, but a side-effect of how --requires and friends are implemented with popt aliases, where there's not a whole lot of control over formatting details.
The simple version of requires is just a query format defined as:
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
While the query formats do support conditionals, the conditionals can only be used on tag existence which doesn't help for this case as REQUIREFLAGS and REQUIREVERSION tags always exist. So while it might be possible to enhance the conditional support in queryformat "language" to allow fixing this, this isn't as easy fix as it might seem on the outset.
FWIW this has been fixed upstream some time ago, but backport to rpm 4.8.x of F14 is unlikely to happen at this point. F14 is EOL by now, but this is fixed in rpm >= 4.9.90 / rawhide. |