Skip to content

Commit 061c936

Browse files
authored
Merge pull request #679 from furlongm/debian-dsc-parsing
correctly parse newer dsc representation
2 parents f213021 + 6a13d6f commit 061c936

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

errata/sources/distros/debian.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,11 @@ def process_debian_erratum_fixed_packages(e, package_data):
303303
if not package_list:
304304
return
305305
fixed_packages = set()
306-
for line in package_list.splitlines():
307-
if not line:
306+
for package in package_list:
307+
if package.get('package-type') != 'deb':
308308
continue
309-
line_parts = line.split()
310-
if line_parts[1] != 'deb':
311-
continue
312-
name = line_parts[0]
313-
arches = process_debian_dsc_arches(line_parts[4])
309+
name = package.get('package')
310+
arches = process_debian_dsc_arches(package.get('_other'))
314311
for arch in arches:
315312
fixed_package = get_or_create_package(name, epoch, ver, rel, arch, Package.DEB)
316313
fixed_packages.add(fixed_package)

0 commit comments

Comments
 (0)