Bug 707358 - Ignored option -c messages in log, when using --installroot.
Summary: Ignored option -c messages in log, when using --installroot.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-24 19:54 UTC by Levente Farkas
Modified: 2014-01-21 06:23 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-12-06 17:34:36 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1702 0 normal SHIPPED_LIVE yum bug fix and enhancement update 2011-12-06 00:49:49 UTC

Description Levente Farkas 2011-05-24 19:54:57 UTC
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)
------------------------------------

Comment 1 Levente Farkas 2011-06-22 19:28:15 UTC
this still not fixed...

Comment 2 Clark Williams 2011-06-22 19:46:52 UTC
I believe that's yum issuing those warning messages

Comment 3 Jeff Sheltren 2011-06-23 15:02:05 UTC
Changing produce to RHEL

Comment 5 Karel Srot 2011-07-26 14:36:01 UTC
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.

Comment 6 James Antill 2011-07-26 19:42:17 UTC
 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:

Comment 11 Jaromir Hradilek 2011-10-26 15:21:36 UTC
    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.

Comment 12 errata-xmlrpc 2011-12-06 17:34:36 UTC
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


Note You need to log in before you can comment on or make changes to this bug.