Bug 1027019 - show-installed -f yum outputs wrong format
Summary: show-installed -f yum outputs wrong format
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-05 22:45 UTC by Joel
Modified: 2013-11-11 09:02 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-11 09:02:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joel 2013-11-05 22:45:32 UTC
show-installed -f yum
outputs the options in the wrong format.  It outputs groups and exclusions as:

@cinnamon-desktop -eog

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".

Thanks!

Comment 1 Zdeněk Pavlas 2013-11-06 11:07:17 UTC
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:

--- a/show-installed.py
+++ b/show-installed.py
@@ -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 = ' '
         else:

To avoid that, I'd rather not touch the code, and suggest using "--" when using the "--format yum" option.

Comment 2 Zdeněk Pavlas 2013-11-11 09:02:56 UTC
Closing as per comment #1 and this yum-devel thread: http://lists.baseurl.org/pipermail/yum-devel/2013-November/010419.html


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