diff options
author | David Robillard <d@drobilla.net> | 2020-02-16 16:31:51 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-16 17:15:42 +0100 |
commit | c5656f7e9e4174303fa13d0ed7219eb8025bbdf4 (patch) | |
tree | 33593620938f230cc3b21eea513334748631a6cb /extras | |
parent | 1784a9c609dd26b2c77292c99ec0afac293f92a0 (diff) | |
download | autowaf-c5656f7e9e4174303fa13d0ed7219eb8025bbdf4.tar.gz autowaf-c5656f7e9e4174303fa13d0ed7219eb8025bbdf4.tar.bz2 autowaf-c5656f7e9e4174303fa13d0ed7219eb8025bbdf4.zip |
Fall back to doap:developer to get maintainer
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/autoship.py | 5 |
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: |