---
 cli.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/cli.py b/cli.py
index 82f286f..6056d38 100644
--- a/cli.py
+++ b/cli.py
@@ -264,7 +264,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
             opts.debuglevel = opts.errorlevel = 6
         if opts.debuglevel != pc.debuglevel or opts.errorlevel != 
pc.errorlevel:
             self.logger.warning("Ignored option -q, -v, -d or -e (probably due 
to merging: -yq != -y -q)")
-        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:
             self.logger.warning("Ignored option -c (probably due to merging 
-yc != -y -c)")
 
         if opts.version:
-- 
1.7.5.4

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to