| Summary: | Ignored option -c messages in log, when using --installroot. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Levente Farkas <lfarkas> |
| Component: | yum | Assignee: | James Antill <james.antill> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | CC: | ksrot, mebrown, sheltren, williams |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | yum-3.2.29-18.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Prior to this update, running a yum command with the "--installroot" command line option caused it to report the following warning:
Ignored option -c (probably due to merging -yc != -y -c)
This update adapts the underlying source code not to display this warning when the "--installroot" option is in use, resolving this issue.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-06 17:34:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Levente Farkas
2011-05-24 19:54:57 UTC
this still not fixed... I believe that's yum issuing those warning messages Changing produce to RHEL James, is this going to be fixed on yum side? And how? Is 'yum -yc yum.conf ...' a valid cmd (I mean like -y -c yum.conf)? Thank you in advance. No, we can't make -yc valid ... easily.
The "bug" here is that if you use --installroot then it issues the warning, and we've fixed that upstream:
commit b4e12dec606dc19fa1ce2ba4be39e26e6145cacf
Author: James Antill <james>
Date: Thu Jun 23 13:28:23 2011 -0400
Don't show -c warning, when we've changed it due to --installroot. BZ 707358
...which takes the hammer approach to solving the problem:
- if opts.conffile != pc.fn:
+ # getRoot() changes it, but then setupYumConfig() changes it back. So
+ # don't test for this, if we are using --installroot.
+ if root == '/' and opts.conffile != pc.fn:
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Prior to this update, running a yum command with the "--installroot" command line option caused it to report the following warning:
Ignored option -c (probably due to merging -yc != -y -c)
This update adapts the underlying source code not to display this warning when the "--installroot" option is in use, resolving this issue.
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. http://rhn.redhat.com/errata/RHBA-2011-1702.html |