summarylogtreecommitdiffstats
path: root/sphinxbase-5prealpha-fix-doxy2swig.patch
diff options
context:
space:
mode:
authordvs9992020-05-12 17:44:40 +0200
committerMartchus2020-05-12 17:47:15 +0200
commit0214f55dd6a776e3046ff0ef4db1c631320601d3 (patch)
tree07546737adb6f778d21af702639a5ee34f697ccc /sphinxbase-5prealpha-fix-doxy2swig.patch
parent326c307a1cfdb772253f629fcac542db5c1e8a17 (diff)
downloadaur-0214f55dd6a776e3046ff0ef4db1c631320601d3.tar.gz
Add patch for doxy2swig compilation issue
Diffstat (limited to 'sphinxbase-5prealpha-fix-doxy2swig.patch')
-rw-r--r--sphinxbase-5prealpha-fix-doxy2swig.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sphinxbase-5prealpha-fix-doxy2swig.patch b/sphinxbase-5prealpha-fix-doxy2swig.patch
new file mode 100644
index 000000000000..08c12d82439d
--- /dev/null
+++ b/sphinxbase-5prealpha-fix-doxy2swig.patch
@@ -0,0 +1,16 @@
+diff --git a/doc/doxy2swig.py b/doc/doxy2swig.py
+index 5589b0d..a01c4b1 100644
+--- a/doc/doxy2swig.py
++++ b/doc/doxy2swig.py
+@@ -299,7 +299,10 @@ class Doxy2SWIG:
+ name = first['name'].firstChild.data
+
+ for n in node.getElementsByTagName('param'):
+- arg_type = n.getElementsByTagName('type')[0]
++ elts = n.getElementsByTagName('type')
++ if len(elts) == 0:
++ continue
++ arg_type = elts[0]
+ ref = self.get_specific_nodes(arg_type, ('ref'))
+ if 'ref' in ref:
+ type_name = ref['ref'].firstChild.data