From 4accfb90705f678107cf15360c7159aba1107cbb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 26 Apr 2020 15:45:02 +0200 Subject: Fix top level news generation for core specification --- wscript | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 7d4fd15..06a7080 100644 --- a/wscript +++ b/wscript @@ -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: -- cgit v1.2.1