[yum-commits] etc/yum-cron.conf yum-cron/yum-cron.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Tue Nov 13 12:57:08 UTC 2012
etc/yum-cron.conf | 4 ++++
yum-cron/yum-cron.py | 5 +++++
2 files changed, 9 insertions(+)
New commits:
commit 68edbd1e9f78a95784641fceac9c1132f7965d44
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Tue Nov 13 13:55:01 2012 +0100
add "skip_broken" option to yum-cron.conf
diff --git a/etc/yum-cron.conf b/etc/yum-cron.conf
index 269c6b7..c227e40 100644
--- a/etc/yum-cron.conf
+++ b/etc/yum-cron.conf
@@ -53,3 +53,7 @@ group_list = None
# The types of group packages to install
group_package_types = mandatory, default
+
+[base]
+# override yum options of the same name
+# skip_broken = True
diff --git a/yum-cron/yum-cron.py b/yum-cron/yum-cron.py
index 44fc785..8f6286b 100755
--- a/yum-cron/yum-cron.py
+++ b/yum-cron/yum-cron.py
@@ -707,6 +707,7 @@ class YumCronConfig(BaseConfig):
yum_config_file = Option("/etc/yum.conf")
group_list = ListOption([])
group_package_types = ListOption(['mandatory', 'default'])
+ skip_broken = BoolOption()
class YumCronBase(yum.YumBase):
@@ -804,6 +805,10 @@ class YumCronBase(yum.YumBase):
self.emitSetupFailed('%s' % e)
sys.exit(1)
+ # override yum options
+ if self.opts.skip_broken is not None:
+ self.conf.skip_broken = self.opts.skip_broken
+
def acquireLock(self):
""" Wrapper method around doLock to emit errors correctly."""
More information about the Yum-commits
mailing list