-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tag with %{NAME} of SRPM #1364
Comments
There is SOURCEPACKAGE, but it is not used:
|
SOURCEPACKAGE is used for identifying source packages, ie it's set to 1 on src.rpm headers. If we added SOURCENAME, the next person would want SOURCEVERSION, -RELEASE and -EPOCH, (because they can differ from the binary package counterparts) and so on. The idea is that SOURCERPM tells you where to find the data you're after, so you can then go and query the src.rpm all you want. That said, you're not the first and wont be the the last person asking for this, the more generic request would be for source NEVR in a format that doesn't require ugly unreliable parsing. |
Is NEVR format saved in headers? If it was, it could be used when parsing NEVR. |
Sorry, I don't understand that question. Parsing NEVR is not a whole lot different or better from parsing SOURCERPM, because the latter is literally just NVR.[no]src.rpm (since epoch isn't there, it's actually easier to parse than NEVR). What would (IMO) make an actual difference is having (source) NEVR as separate components available, but it leads back to the point of the data not really belonging to binary packages in the first place. |
I wonder if we can just have some extension tags to easier access the parts of |
I am a bit fed up with RPM's inability to show the value of "Name:" tag of the spec from which the package was built.
rpm -q --qf '%{sourcerpm}\n
shows something likemetacity-3.34.1-1.src.rpm
and I have to use strange combinations of comsnds to extract the real name "metacity" from this. Why can't there be a tag the value of which will be just "metacity"?The text was updated successfully, but these errors were encountered: