[Secure-testing-commits] r31468 - lib/python
Florian Weimer
fw at moszumanska.debian.org
Sat Jan 17 23:08:10 UTC 2015
Author: fw
Date: 2015-01-17 23:08:10 +0000 (Sat, 17 Jan 2015)
New Revision: 31468
Modified:
lib/python/security_db.py
Log:
security_db.DB._parseFile(): Skip entries with Extra-Source-Only
Modified: lib/python/security_db.py
===================================================================
--- lib/python/security_db.py 2015-01-17 23:06:05 UTC (rev 31467)
+++ lib/python/security_db.py 2015-01-17 23:08:10 UTC (rev 31468)
@@ -508,6 +508,7 @@
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 @@
(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 @@
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):
More information about the Secure-testing-commits
mailing list