Red Hat Bugzilla – Bug 1027019
show-installed -f yum outputs wrong format
Last modified: 2013-11-11 04:02:56 EST
show-installed -f yum
outputs the options in the wrong format. It outputs groups and exclusions as:
While this matches the documention in yum manpage, it doesn't match the actual program: https://bugzilla.redhat.com/show_bug.cgi?id=1026598
What is needed is either "--exclude=eog" or a "-- -eog".
We can add '--' at the beginning, but there's a problem that end-of-options is recognized only once. It's likely that most users that feed show-installed output to yum *already* use something like "yum <options> install -- $(cat show-installed-output)", and the following patch would break that:
@@ -306,6 +306,8 @@ class ListPrinter:
indent = ''
separator = '\n'
elif self.options.format == "yum":
+ # end options, so "-<pkg>" excludes work
+ self.output.write('-- ')
indent = ''
separator = ' '
To avoid that, I'd rather not touch the code, and suggest using "--" when using the "--format yum" option.
Closing as per comment #1 and this yum-devel thread: http://lists.baseurl.org/pipermail/yum-devel/2013-November/010419.html