diff options
author | David Robillard <d@drobilla.net> | 2020-04-26 15:45:02 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-26 15:45:02 +0200 |
commit | 4accfb90705f678107cf15360c7159aba1107cbb (patch) | |
tree | 844eb8e0dd57e5ac074ccd3d4345ec8e707e3476 /wscript | |
parent | 3f6602ff5569b8c7ff8521c34992d99030a1bb8d (diff) | |
download | lv2-4accfb90705f678107cf15360c7159aba1107cbb.tar.xz |
Fix top level news generation for core specification
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -630,13 +630,19 @@ def _get_news_entries(ctx): # Add items from every specification for specdir in specdirs(ctx.path): name = os.path.basename(specdir.abspath()) - entries = autoship.read_ttl_news(name, ttl_files(ctx.path, specdir)) + files = list(ttl_files(ctx.path, specdir)) + if name == "core": + files = [f for f in files if (not f.endswith('/meta.ttl') and + not f.endswith('/people.ttl') and + not f.endswith('/manifest.ttl'))] + + entries = autoship.read_ttl_news(name, files) def add_items(lv2_version, name, items): for item in items: lv2_entries[lv2_version]["items"] += ["%s: %s" % (name, item)] - if entries and name != "core": + if entries: latest_revision = sorted(entries.keys(), reverse=True)[0] for revision, entry in entries.items(): if "dist" in entry: |