Bug 1095161
Summary: | yum-config-manager --setopt doesn't work with wildcards | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Karel Srot <ksrot> | |
Component: | yum | Assignee: | James Antill <james.antill> | |
Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 7.0 | CC: | james.antill, vmukhame | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | yum-3.4.3-119.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1094373 | |||
: | 1129590 (view as bug list) | Environment: | ||
Last Closed: | 2015-03-05 09:03:58 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: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1129590 |
Description
Karel Srot
2014-05-07 08:37:41 UTC
Here is the upstream commit for fixing the spaces handling part. Everything else will be fixed as part of bug 1129590 in yum-utils. commit 0954b42554b7f78809d9050886b419a99e28d289 Author: Valentina Mukhamedzhanova <vmukhame> Date: Tue May 13 15:50:52 2014 +0200 Make --setopt handle spaces properly. BZ 1094373 diff --git a/cli.py b/cli.py index c1ef023..aa73278 100755 --- a/cli.py +++ b/cli.py @@ -193,7 +193,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput): if len(vals) < 2: bad_setopt_ne.append(item) continue - k,v = vals + k, v = [i.strip() for i in vals] period = k.rfind('.') if period != -1: repo = k[:period] Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0398.html |