diff options
author | David Robillard <d@drobilla.net> | 2011-11-17 20:13:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-17 20:13:41 +0000 |
commit | 6fde4cff5c0cce1d20be93407d8d3a28c12a459e (patch) | |
tree | bf4464883a57406cf9364f796aacd085c5640f18 /lv2specgen | |
parent | fb4b2ae273205436f1e4f68545225a3c01d673b5 (diff) | |
download | lv2-6fde4cff5c0cce1d20be93407d8d3a28c12a459e.tar.xz |
Show changelog for current development version.
Diffstat (limited to 'lv2specgen')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 71dc5b3..a0fdc52 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -878,9 +878,6 @@ def specHistory(m, subject): rev = getLiteralString(getObject(revNode)) created = findOne(m, release, doap.created, None) - if not created: - print "error: doap:release has no doap:created" - continue dist = findOne(m, release, doap['file-release'], None) if dist: @@ -889,8 +886,10 @@ def specHistory(m, subject): entry = '<dt>Version %s' % rev #print "warning: doap:release has no doap:file-release" - entry += ' (%s)</dt>' % ( - getLiteralString(getObject(created))) + if created: + entry += ' (%s)</dt>' % getLiteralString(getObject(created)) + else: + entry += ' (<span class="warning">EXPERIMENTAL</span>)</dt>' changeset = findOne(m, release, dcs.changeset, None) if changeset: @@ -904,15 +903,18 @@ def specHistory(m, subject): entry += '<li>%s</li>' % getLiteralString(getObject(label)) - entry += '</dd>\n' + entry += '</ul></dd>\n' entries[rev] = entry - history = '<dl>' - for e in sorted(entries.keys(), reverse=True): - history += entries[e] - history += '</dl>' - return history + if len(entries) > 0: + history = '<dl>' + for e in sorted(entries.keys(), reverse=True): + history += entries[e] + history += '</dl>' + return history + else: + return '' def specVersion(m, subject): |