Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e53c27ce7a27944d2cee0a028d0ccfc9 > files > 20

yum-3.2.22-37.sl.src.rpm

commit b78120bd4ee3408618f87865237481f82ca99b75
Author: James Antill <james@and.org>
Date:   Tue Aug 26 16:37:54 2008 -0400

    Change the default installonly_limit to 3

diff --git a/docs/yum.conf.5 b/docs/yum.conf.5
index 415f84b..e502a87 100644
--- a/docs/yum.conf.5
+++ b/docs/yum.conf.5
@@ -108,7 +108,7 @@ kernel-bigmem, kernel-enterprise, kernel-debug, kernel-unsupported.
 
 .IP \fBinstallonly_limit \fR
 Number of packages listed in installonlypkgs to keep installed at the same
-time. Setting to 0 disables this feature. Default is '0'.
+time. Setting to 0 disables this feature. Default is '4'.
 
 .IP \fBkernelpkgnames \fR
 List of package names that are kernels. This is really only here for the
diff --git a/yum/config.py b/yum/config.py
index fb34c06..01d48bf 100644
--- a/yum/config.py
+++ b/yum/config.py
@@ -616,7 +616,7 @@ class YumConf(StartupConf):
     # NOTE: If you set this to 2, then because it keeps the current kernel it
     # means if you ever install an "old" kernel it'll get rid of the newest one
     # so you probably want to use 3 as a minimum ... if you turn it on.
-    installonly_limit = PositiveIntOption(0, range_min=2,
+    installonly_limit = PositiveIntOption(4, range_min=2,
                                           names_of_0=["0", "<off>"])
     kernelpkgnames = ListOption(['kernel','kernel-smp', 'kernel-enterprise',
             'kernel-bigmem', 'kernel-BOOT', 'kernel-PAE', 'kernel-PAE-debug'])