Hide Forgot
i see such messages in mock's log where Ignored option -c (probably due to merging -yc != -y -c) it seems mock call yum with wrong options: ------------------------------------ DEBUG backend.py:739: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'resolvedep', 'ccache'] DEBUG util.py:284: Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'resolvedep', 'ccache'] DEBUG util.py:250: Ignored option -c (probably due to merging -yc != -y -c) DEBUG util.py:250: 0:ccache-3.1.4-1.el6.i686 DEBUG util.py:323: Child returncode was: 0 DEBUG backend.py:739: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'install', 'ccache'] DEBUG util.py:284: Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'install', 'ccache'] DEBUG util.py:250: Ignored option -c (probably due to merging -yc != -y -c) ------------------------------------
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