mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
discourse: strip markers from plugin compat spec
The plugin updater would previously stumble over compat spec version entries that begin with angled brackets. ```` < 3.3.0.beta1-dev: 56b0de3896361b6a87523537c8f5b450d2fe0807 3.2.0: 33c43ca51ac7b7baa8a309a269dcf8685b8bd638 < 3.2.0.beta2-dev: ac930c509e2a5b0c37b84bcea28d332e686add95 3.1.999: a304cd2028ccf1f5b00f5137633aa7027a1fd334 3.1.0.beta3: 9c270cac9abc1c2b30574d8c655fb3a90546236b [...] ````
This commit is contained in:
parent
3106519f14
commit
5cf005119a
@ -302,7 +302,7 @@ def update_plugins():
|
||||
compatibility_spec = repo.get_file('.discourse-compatibility', repo.latest_commit_sha)
|
||||
versions = [(DiscourseVersion(discourse_version), plugin_rev.strip(' '))
|
||||
for [discourse_version, plugin_rev]
|
||||
in [line.split(':')
|
||||
in [line.lstrip("< ").split(':')
|
||||
for line
|
||||
in compatibility_spec.splitlines() if line != '']]
|
||||
discourse_version = DiscourseVersion(_get_current_package_version('discourse'))
|
||||
|
Loading…
Reference in New Issue
Block a user