[Rpm-maint] [rpm-software-management/rpm] RFE: Handle disttag (#589)
Ivan Zakharyaschev
notifications at github.com
Sun Nov 11 01:52:19 UTC 2018
On Sat, 10 Nov 2018, Jeff Johnson wrote:
> Nit picky parsing comment:
>
> The representation for "release:distag" (your example) fed to --query MUST be
>
> rpm --query -- -release:distag
>
> Without the leading - on release, a parser will interpret release as version, doh!
>
> See if you agree ...
Perhaps I don't understand your comment very well.
But I haven't thought about giving parts of NEVR without including the
name as arguments to rpm.
I used the short form `release:disttag` to say that wherever one used to
put the value `release` in his scripts, one might end up putting a string
that actually is `release:disttag` if one has parsed the ouptut of
`rpm -qa` after the proposed changed.
So, that would translate to your specific example (of a script where one
used to put the value `release`):
One used to call:
rpm --query release
If parsing the output of `rpm -qa` after the proposed change, one would
call:
rpm --query release:disttag
I feel that even the first command is strange (`rpm --query release`); I
wouldn't expect it to appear in a useful script. So I don't see a reason
to discuss the second one.
--
Best regards,
Ivan
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/589#issuecomment-437636770
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181110/66c7ab94/attachment.html>
More information about the Rpm-maint
mailing list