mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
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:
parent
52f22574ea
commit
77b7dc52cf
@ -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 == []:
|
||||
|
Loading…
Reference in New Issue
Block a user