[yum-cvs] yum-utils/plugins/skip-broken skip-broken.py, 1.5, 1.6 skip-broken.conf, 1.3, 1.4
Tim Lauridsen
timlau at linux.duke.edu
Tue Mar 13 11:42:48 UTC 2007
Update of /home/groups/yum/cvs/yum-utils/plugins/skip-broken
In directory login1.linux.duke.edu:/tmp/cvs-serv25928/plugins/skip-broken
Modified Files:
skip-broken.py skip-broken.conf
Log Message:
Added 'check_always' option to the skip-broken plugin.
Setting 'check_always=1' will make the skip-broken check run every time.
(rhbz #231523)
Index: skip-broken.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/skip-broken/skip-broken.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- skip-broken.py 1 Mar 2007 19:51:43 -0000 1.5
+++ skip-broken.py 13 Mar 2007 11:42:46 -0000 1.6
@@ -5,7 +5,7 @@
# Option.
#
# Ex.
-# yum --ignore-broken install foo
+# yum --skip-broken install foo
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -79,8 +79,12 @@
def config_hook(conduit):
'''
Yum Plugin Config Hook:
- Setup the option parser with the '--ignore-broken' command line option
+ Setup the option parser with the '--skip-broken' command line option
'''
+ global check_always
+ # Get 'check_always' option from plugin conf
+ check_always = conduit.confBool('main', 'check_always', default=False)
+
parser = conduit.getOptParser()
if parser:
parser.add_option("", "--skip-broken", dest="skipbroken",
@@ -91,11 +95,11 @@
'''
Yum Plugin PreResolve Hook:
Check and remove packages with dependency problems
- only runs if then '--ignore-broken' was set.
+ only runs if then '--skip-broken' was set.
'''
opts, commands = conduit.getCmdLine()
if hasattr(opts,'skipbroken'):
- if opts.skipbroken:
+ if opts.skipbroken or check_always:
# get yum base
conduit.info(2,'Checking packages for dependency problems')
base = conduit._base
Index: skip-broken.conf
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/skip-broken/skip-broken.conf,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- skip-broken.conf 25 Sep 2006 13:05:38 -0000 1.3
+++ skip-broken.conf 13 Mar 2007 11:42:46 -0000 1.4
@@ -1,3 +1,4 @@
[main]
enabled = 1
+check_always = 0
More information about the Yum-cvs-commits
mailing list