From c5656f7e9e4174303fa13d0ed7219eb8025bbdf4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Feb 2020 16:31:51 +0100 Subject: Fall back to doap:developer to get maintainer --- extras/autoship.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/autoship.py b/extras/autoship.py index 6028149..6850d34 100755 --- a/extras/autoship.py +++ b/extras/autoship.py @@ -296,11 +296,14 @@ def write_ttl_news(entries, out_file, template=None, subject_uri=None): subject = rdflib.URIRef(subject_uri) g.add((subject, rdf.type, doap.Project)) else: - # Find project URI to use as subject, and optionally the maintainer + # Find project URI to use as subject subject = g.value(None, rdf.type, doap.Project) ensure(subject is not None, "Unable to find project URI for subject") + # Get maintainer maintainer = g.value(subject, doap.maintainer, None) + if not maintainer: + maintainer = g.value(subject, doap.developer, None) revisions = sorted(entries.keys(), reverse=True) for r in revisions: -- cgit v1.2.1