Commit dcbacce5 authored by Paul Spooren's avatar Paul Spooren Committed by Holger Levsen

openwrt: fixup readlines/splitlines in rebuild

using readlines() causes the array to contain extra newlines, breaking
the email.parser. This approach solves the issue.
Signed-off-by: Paul Spooren's avatarPaul Spooren <mail@aparcar.org>
Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 4861ba08
......@@ -452,7 +452,9 @@ def diffoscope_multithread():
def store_results():
with open(target_dir + "/packages/Packages.manifest") as rebuild_manifest:
origin_manifest = get_file(download_url + "/packages/Packages.manifest")
result = show_list_difference(origin_manifest, rebuild_manifest.readlines())
result = show_list_difference(
origin_manifest, rebuild_manifest.read().splitlines()
)
insert_into_db(result, "{}-rebuild".format(version))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment