Bug 445800 - yum groupinstall gives syntax error when group does not exist
yum groupinstall gives syntax error when group does not exist
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-05-09 05:09 EDT by stefan
Modified: 2014-01-21 18:02 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-09 08:01:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description stefan 2008-05-09 05:09:52 EDT
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

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,
  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 08:01:43 EDT
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.