Bug 445800 - yum groupinstall gives syntax error when group does not exist
Summary: yum groupinstall gives syntax error when group does not exist
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-09 09:09 UTC by stefan
Modified: 2014-01-21 23:02 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-09 12:01:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description stefan 2008-05-09 09:09:52 UTC
Description of problem: yum groupinstall gives an elaborate syntax error when
the group does not exist opposed to the "correct" error message a single package
returns


Version-Release number of selected component (if applicable): F9 RC


How reproducible: just install a non-existent single package (which works okay)
and a non-existent group (which gives the error syntax)

# yum install stefan
# yum groupinstall stefan

Steps to Reproduce:
1. yum install stefan (single package)
2. yum groupinstall stefan (group)
  
Actual results:
Loaded plugins: refresh-packagekit
Setting up Group Process
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 241, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 116, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 311, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 327, in doCommand
    return base.installGroups(extcmds)
  File "/usr/share/yum-cli/cli.py", line 859, in installGroups
    self.logger.error(_('Warning: Group %s does not exist.'), group_strng)
NameError: global name 'group_strng' is not defined

Expected results:
No package stefan available.
Nothing to do

Additional info: was tested on the release candidate of F9 dated may 2008

Comment 1 Seth Vidal 2008-05-09 12:01:43 UTC
Thanks. This has been fixed in upstream yum due to other changes to the group
handling code.


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