| Summary: | RFE: include rpmdev-splitfilename | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | tal | ||||
| Component: | rpmdevtools | Assignee: | Ville Skyttä <ville.skytta> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | a.badger, james.antill, twoerner, ville.skytta | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-12-06 21:39:04 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: | |||||
| Attachments: |
|
||||||
Note that this would require a dep. on yum/rpmUtils, which rpmdevtools currently doesn't have. In addition to the rpmUtils dep, there are a few issues why I'm closing this as WONTFIX. Most of the functionality is already available through plain rpm's query format, see for example
rpm -qp --qf='%{NAME}\t%{VERSION}\t%{RELEASE}\t%{EPOCH}\t%{ARCH}\n' \
path/to/example-1.2-3.el6.x86_64.rpm
Of the things that aren't directly available through query formatting ("integer portion of release" and "platform") look quite specific to some need, and the terminology isn't widely used. I also have a hunch that they might make some assumptions about the format of the release tag which might not hold in general. And the dir portion of the path name can be trivially acquired through standard bash (or the dirname command).
|
Created attachment 832726 [details] rpmdev-splitfilename rpmdev-splitfilename I needed to use rpmUtils.miscutils.splitFilename from bash. There was no command-line tool that gave me access. I wrote a utility that exposed it.