[yum-cvs] plugins/priorities

Seth Vidal skvidal at linux.duke.edu
Mon Dec 17 14:57:28 UTC 2007


 plugins/priorities/priorities.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a63c03bf31565f3df1497c5c35cb69d9b50a448f
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Mon Dec 17 09:55:02 2007 -0500

    apply patch to fix rh bug: 421961 - make sure we're passing in opts
    before we get the value of the opts.

diff --git a/plugins/priorities/priorities.py b/plugins/priorities/priorities.py
index fd33591..d542b42 100644
--- a/plugins/priorities/priorities.py
+++ b/plugins/priorities/priorities.py
@@ -85,7 +85,7 @@ def exclude_hook(conduit):
 
     # Check whether the user specified the --samearch option.
     opts, commands = conduit.getCmdLine()
-    if opts.samearch:
+    if opts and opts.samearch:
         only_samearch = True
 
     cnt = 0



More information about the Yum-cvs-commits mailing list