On Wed, Aug 22, 2018 at 04:13:50PM -0500, Jason L Tibbitts III wrote: > >>>>> "ZJ" == Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> writes: > > ZJ> Can we patch rpm not to show this useless line? > > In the context of what I wrote, there's no "useless line". I assume > you're talking about rpm -qi output, but I was being more general than > that. Certainly we wouldn't patch out the GROUP querytag, for example, > or change the RPM header format. The group field in the header will > always contain some data, and if the specfile didn't specify a group > then 'Unspecified' will be stored there. > > Now, the 'rpm -qi' output is actually something you can change. It's > defined in /usr/lib/rpm/rpmpopt-(version). I have no idea if the Fedora > RPM maintainers, or upstream RPM, would be willing to patch that file, > since it can show valid info and Fedora isn't the only place where > people might acquire packages. Plus I figure that if anyone really > cared about what was shown there, we would have patched out the > 'Relocations:' line about a decade ago. Really, 'dnf info' output is > probably more relevant at this point. > > However, if you really don't want to see it, you can just put an 'rpm > alias --info' line in /etc/popt or ~/.popt. I don't believe that RPM > query expressions are sufficiently powerful to suppress the Group: line > if the group is 'Unspecified', but I'd be happy if I were wrong. Yeah, I meant the output of 'rpm -qi'. It would be great to make it simply skip the line instead of showing "Group : Unspecified", but only when %GROUP is really "Unspecified". AFAICS, rpm does not have a syntax for this, but of course the syntax is helpfully completely undocumented, so it's hard to say for sure. Patching ~/.popt is an option, but I would prefer to see Group if it is given. I filed https://github.com/rpm-software-management/rpm/pull/532 for the Relocations: line. Zbyszek _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/SLBIXSSIBTW2YR62MWKKLTHGYV4XPEXN/