discourse: Fix update.py handling newlines

The update.py script would error out if the spec had a trailing new
line. The split that follows it would try to split it into two, and
error out as it can't.
This commit is contained in:
Marcel Müller 2023-09-10 13:40:07 +02:00
parent 52f22574ea
commit 77b7dc52cf

View File

@ -322,7 +322,7 @@ def update_plugins():
for [discourse_version, plugin_rev]
in [line.split(':')
for line
in compatibility_spec.splitlines()]]
in compatibility_spec.splitlines() if line != '']]
discourse_version = DiscourseVersion(_get_current_package_version('discourse'))
versions = list(filter(lambda ver: ver[0] >= discourse_version, versions))
if versions == []: