Bug 1038211 - RFE: include rpmdev-splitfilename
Summary: RFE: include rpmdev-splitfilename
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmdevtools
Version: rawhide
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-04 15:49 UTC by tal
Modified: 2013-12-06 21:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-06 21:39:04 UTC
Type: Bug


Attachments (Terms of Use)
rpmdev-splitfilename (4.83 KB, text/plain)
2013-12-04 15:49 UTC, tal
no flags Details

Description tal 2013-12-04 15:49:33 UTC
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.

Comment 1 James Antill 2013-12-04 17:21:33 UTC
Note that this would require a dep. on yum/rpmUtils, which rpmdevtools currently doesn't have.

Comment 2 Ville Skyttä 2013-12-06 21:39:04 UTC
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).


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