Bug 1018494

Summary: yum install @NOSUCHGROUP does not give an error
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, ffesti, firas.alkafri, jzeleny, lnie, packaging-team-maint, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-3.4.3-137.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 09:32:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Richard W.M. Jones 2013-10-12 16:11:02 UTC
Description of problem:

$ sudo yum install @NOSUCHGROUP
Loaded plugins: auto-update-debuginfo, langpacks
Nothing to do
$ echo $?
0

But if you try that with an ordinary package:

$ sudo yum install NOSUCHPACKAGE
Loaded plugins: auto-update-debuginfo, langpacks
No package NOSUCHPACKAGE available.
Error: Nothing to do
$ echo $?
1

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

yum-3.4.3-106.fc19.noarch

How reproducible:

100%

Steps to Reproduce:
1. See above.

Expected results:

Yum should give an error (and MORE IMPORTANTLY return a
non-zero exit code) if the group does not exist.

Comment 1 Fedora Update System 2014-02-13 11:51:17 UTC
yum-3.4.3-135.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-3.4.3-135.fc20

Comment 2 Fedora Update System 2014-02-13 12:09:59 UTC
yum-3.4.3-135.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/yum-3.4.3-135.fc19

Comment 3 lnie 2014-02-14 06:01:36 UTC
yum-3.4.3-135.fc20 works

Comment 4 Fedora Update System 2014-02-28 18:29:56 UTC
yum-3.4.3-137.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2014-05-28 02:53:03 UTC
yum-3.4.3-137.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.