From bb9141e5ccadc65ce76152b9291e88f47983d4a7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Feb 2019 16:39:30 +0100 Subject: Fix duplicate news entries in documentation --- wscript | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index ef3628d..16c4f02 100644 --- a/wscript +++ b/wscript @@ -133,11 +133,12 @@ def ttl_files(path, specdir): return map(abspath, path.ant_glob(specdir.path_from(path) + '/*.ttl')) -def load_ttl(files): +def load_ttl(files, exclude = []): import rdflib model = rdflib.ConjunctiveGraph() for f in files: - model.parse(f, format='n3') + if f not in exclude: + model.parse(f, format='n3') return model # Task to build extension index @@ -175,9 +176,11 @@ def build_index(task): ctx = task.generator.bld subdirs = specdirs(ctx.path) for specdir in subdirs: - m = load_ttl(ttl_files(ctx.path, specdir)) - name = os.path.basename(specdir.abspath()) - spec = m.value(None, rdf.type, lv2.Specification) + files = ttl_files(ctx.path, specdir) + exclude = [os.path.join(str(ctx.path), 'lv2/core/meta.ttl')] + m = load_ttl(files, exclude) + name = os.path.basename(specdir.abspath()) + spec = m.value(None, rdf.type, lv2.Specification) if spec: for dist in dists: release = m.value(None, doap['file-release'], dist[1]) -- cgit v1.2.1