aboutsummaryrefslogtreecommitdiffstats
path: root/gendoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'gendoc.py')
-rwxr-xr-xgendoc.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/gendoc.py b/gendoc.py
index 84442f0..2f6ae7e 100755
--- a/gendoc.py
+++ b/gendoc.py
@@ -170,13 +170,18 @@ for dir in ['ext', 'extensions']:
date = None
for r in model.triples([ext_node, doap.release, None]):
revision = model.value(r[2], doap.revision, None)
- if revision != ("%d.%d" % (minor, micro)):
- print("warning: %s: doap:revision %s != %d.%d" % (
- bundle, revision, minor, micro))
- continue
+ if revision == ("%d.%d" % (minor, micro)):
+ date = model.value(r[2], doap.created, None)
+ break
- date = model.value(r[2], doap.created, None)
- break
+ # Verify that this date is the latest
+ for r in model.triples([ext_node, doap.release, None]):
+ revision = model.value(r[2], doap.revision, None)
+ this_date = model.value(r[2], doap.created, None)
+ if this_date > date:
+ print "warning: revision %d.%d (%s) is not the latest release" % (
+ minor, micro, date)
+ break
# Get short description
shortdesc = model.value(ext_node, doap.shortdesc, None)