[yum-git] plugins/security
James Antill
james at linux.duke.edu
Mon Sep 15 18:21:40 UTC 2008
plugins/security/security.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 624826edda43cfd5ad308fe6d4c71b25940de889
Author: James Antill <james at and.org>
Date: Mon Sep 15 14:21:23 2008 -0400
Pass used_map to _has_id from ysp_should_filter_pkg, fixes bug 462372
diff --git a/plugins/security/security.py b/plugins/security/security.py
index 647bed5..82a3300 100755
--- a/plugins/security/security.py
+++ b/plugins/security/security.py
@@ -93,7 +93,7 @@ def _match_sec_cmd(sec_cmds, pkgname, notice):
return i
return None
-def _has_id(refs, ref_type, ref_ids):
+def _has_id(used_map, refs, ref_type, ref_ids):
''' Check if the given ID is a match. '''
for ref in ysp__safe_refs(refs):
if ref['type'] != ref_type:
@@ -114,9 +114,9 @@ def ysp_should_filter_pkg(opts, pkgname, notice, used_map):
elif opts.advisory and notice['update_id'] in opts.advisory:
used_map['id'][notice['update_id']] = True
return True
- elif opts.cve and _has_id(notice['references'], "cve", opts.cve):
+ elif opts.cve and _has_id(used_map, notice['references'], "cve", opts.cve):
return True
- elif opts.bz and _has_id(notice['references'], "bugzilla", opts.bz):
+ elif opts.bz and _has_id(used_map, notice['references'],"bugzilla",opts.bz):
return True
elif opts.security:
if notice['type'] == 'security':
More information about the Yum-cvs-commits
mailing list