Skip to content
Snippets Groups Projects
Verified Commit 61cfd77d authored by Antoine Lambert's avatar Antoine Lambert
Browse files

debian: Fix error since python-debian 1.0 release

Since python-debian 1.0 release, an extra paragraph is returned
when calling Sources.iter_paragraphs that does not have the
expected schema so ensure to ignore it.
parent f2f9c7d1
No related branches found
No related tags found
1 merge request!553debian: Fix error since python-debian 1.0 release
Pipeline #13958 passed
......@@ -200,6 +200,8 @@ class DebianLister(Lister[DebianListerState, DebianPageType]):
sum_name = "md5sum"
if field_ in src_pkg:
for entry in src_pkg[field_]:
if "name" not in entry:
continue
name = entry["name"]
files[name]["name"] = name
files[name]["size"] = int(entry["size"], 10)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment