From 77b7dc52cf27b2bf6028015f418e3aad3ee8c74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Sun, 10 Sep 2023 13:40:07 +0200 Subject: [PATCH] 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. --- pkgs/servers/web-apps/discourse/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/web-apps/discourse/update.py b/pkgs/servers/web-apps/discourse/update.py index dee31918eac9..9b300d1d4959 100755 --- a/pkgs/servers/web-apps/discourse/update.py +++ b/pkgs/servers/web-apps/discourse/update.py @@ -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 == []: