summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2015-01-17 23:08:10 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2015-01-17 23:08:10 +0000
commit1e275a1da6860c979ac14cfcc6d9ce53b454c642 (patch)
tree72f0012231651f018349e6a3897a596b196e54d5 /lib
parent38abd5eb7f49a6d0d6020c9f1886edf5e677ac47 (diff)
security_db.DB._parseFile(): Skip entries with Extra-Source-Only
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@31468 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 643bddcaa9..36543a26d9 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -508,6 +508,7 @@ class DB:
pkg_arch = None
pkg_source = None
pkg_source_version = None
+ pkg_extra_source_only = False
for (name, contents) in pkg:
if name == "Package":
pkg_name = contents
@@ -522,6 +523,8 @@ class DB:
(pkg_source, pkg_source_version) = match.groups()
elif name == "Architecture":
pkg_arch = contents
+ elif name == "Extra-Source-Only":
+ pkg_extra_source_only = True
if pkg_name is None:
raise SyntaxError\
("package record does not contain package name")
@@ -533,6 +536,10 @@ class DB:
raise SyntaxError\
("package record for %s lacks Architecture: field"
% pkg_name)
+ if pkg_extra_source_only:
+ # Skip, sources are included only for GPL
+ # compliance reasons.
+ continue
if pkg_name in data:
oversion = debian_support.Version(data[pkg_name][0])
if oversion < debian_support.Version(pkg_version):

© 2014-2024 Faster IT GmbH | imprint | privacy policy