yifengyou / rpms / yum

Forked from rpms/yum 3 years ago
Clone

Blame SOURCES/BZ-1291745-query-install-excludes.patch

5e9bef
commit cc08cae08365d473d2ab5b29cd1ab4fedc8d0f75
5e9bef
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
5e9bef
Date:   Tue Dec 15 15:01:23 2015 +0100
5e9bef
5e9bef
    Fix the default value for query_install_excludes config option.
5e9bef
5e9bef
diff --git a/docs/yum.conf.5 b/docs/yum.conf.5
5e9bef
index 0548860..27620b8 100644
5e9bef
--- a/docs/yum.conf.5
5e9bef
+++ b/docs/yum.conf.5
5e9bef
@@ -174,7 +174,7 @@ A way to permanently set the --disableexcludes command line option.
5e9bef
 \fBquery_install_excludes\fR
5e9bef
 This applies the command line exclude option (only, not the configuration
5e9bef
 exclude above) to installed packages being shown in some query commands
5e9bef
-(currently: list/info/search/provides).
5e9bef
+(currently: list/info/search/provides). Default is '0'.
5e9bef
 
5e9bef
 .IP
5e9bef
 \fBinstallonlypkgs \fR
5e9bef
diff --git a/yum/config.py b/yum/config.py
5e9bef
index 0dcbc6a..77a1003 100644
5e9bef
--- a/yum/config.py
5e9bef
+++ b/yum/config.py
5e9bef
@@ -826,7 +826,7 @@ class YumConf(StartupConf):
5e9bef
     # XXX rpm_check_debug is unused, left around for API compatibility for now
5e9bef
     rpm_check_debug = BoolOption(True)
5e9bef
     disable_excludes = ListOption()    
5e9bef
-    query_install_excludes = BoolOption(True)
5e9bef
+    query_install_excludes = BoolOption(False)
5e9bef
     skip_broken = BoolOption(False)
5e9bef
     #  Note that "instant" is the old behaviour, but group:primary is very
5e9bef
     # similar but better :).