summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-02-16 16:31:51 +0100
committerDavid Robillard <d@drobilla.net>2020-02-16 17:15:42 +0100
commitc5656f7e9e4174303fa13d0ed7219eb8025bbdf4 (patch)
tree33593620938f230cc3b21eea513334748631a6cb
parent1784a9c609dd26b2c77292c99ec0afac293f92a0 (diff)
downloadautowaf-c5656f7e9e4174303fa13d0ed7219eb8025bbdf4.tar.gz
autowaf-c5656f7e9e4174303fa13d0ed7219eb8025bbdf4.tar.bz2
autowaf-c5656f7e9e4174303fa13d0ed7219eb8025bbdf4.zip
Fall back to doap:developer to get maintainer
-rwxr-xr-xextras/autoship.py5
1 files changed, 4 insertions, 1 deletions
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: