Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 883877 Details for
Bug 1080331
dnf group list fail to run with noroot plugin
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Better patch (wrong checkout)
0001-fix-group-install-RhBug-1080331.patch (text/plain), 1.85 KB, created by
Tim Lauridsen
on 2014-04-08 05:50:03 UTC
(
hide
)
Description:
Better patch (wrong checkout)
Filename:
MIME Type:
Creator:
Tim Lauridsen
Created:
2014-04-08 05:50:03 UTC
Size:
1.85 KB
patch
obsolete
>From 1cb06508037c632df0f04f7cc60e7f2e5c157126 Mon Sep 17 00:00:00 2001 >From: Tim Lauridsen <timlau@fedoraproject.org> >Date: Tue, 8 Apr 2014 07:48:56 +0200 >Subject: [PATCH] fix group install (RhBug #1080331) > >--- > dnf/cli/commands/group.py | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > >diff --git a/dnf/cli/commands/group.py b/dnf/cli/commands/group.py >index 17ae8e2..cfeb65d 100644 >--- a/dnf/cli/commands/group.py >+++ b/dnf/cli/commands/group.py >@@ -88,11 +88,17 @@ class GroupCommand(commands.Command): > def _install(self, extcmds): > cnt = 0 > types, patterns = self._split_extcmds(extcmds) >+ found = False > for env in self._patterns2environments(patterns): >+ found = True > cnt += self.base.environment_install(env, types) > for grp in self._patterns2groups(patterns): >+ found = True > cnt += self.base.group_install(grp, types) >- if not cnt: >+ if not found: >+ msg = _("No relevant match for the specified groups") >+ raise dnf.cli.CliError(msg) >+ elif not cnt: > msg = _('No packages in any requested groups available to install.') > raise dnf.cli.CliError(msg) > >@@ -122,16 +128,10 @@ class GroupCommand(commands.Command): > def _patterns2(fn, patterns, fltr): > for pat in patterns: > grps = fn(pat) >- cnt = 0 > for grp in grps: > if not fltr(grp): > continue > yield grp >- cnt += 1 >- if not cnt: >- msg = _("No relevant match for the specified '%s'.") >- msg = msg % to_unicode(pat) >- raise dnf.cli.CliError(msg) > > def _patterns2environments(self, patterns, fltr=lambda grp: True): > fn = self.base.comps.environments_by_pattern >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1080331
:
883863
|
883876
|
883877
|
883892