Hello community,

here is the log from the commit of package python-breathe for openSUSE:Factory 
checked in at 2020-06-28 23:04:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-breathe (Old)
 and      /work/SRC/openSUSE:Factory/.python-breathe.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-breathe"

Sun Jun 28 23:04:37 2020 rev:9 rq:817213 version:4.19.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-breathe/python-breathe.changes    
2020-06-21 19:03:27.224431768 +0200
+++ /work/SRC/openSUSE:Factory/.python-breathe.new.3060/python-breathe.changes  
2020-06-28 23:05:53.862773261 +0200
@@ -1,0 +2,6 @@
+Fri Jun 26 08:45:26 UTC 2020 - Guillaume GARDET <[email protected]>
+
+- update to 4.19.2:
+  * Fix crash when visiting typedef. #547
+
+-------------------------------------------------------------------

Old:
----
  v4.19.1.tar.gz

New:
----
  v4.19.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-breathe.spec ++++++
--- /var/tmp/diff_new_pack.9xRbz5/_old  2020-06-28 23:05:54.362774922 +0200
+++ /var/tmp/diff_new_pack.9xRbz5/_new  2020-06-28 23:05:54.362774922 +0200
@@ -18,7 +18,7 @@
 
 %define skip_python2 1
 Name:           python-breathe
-Version:        4.19.1
+Version:        4.19.2
 Release:        0
 Summary:        Sphinx Doxygen renderer
 License:        BSD-3-Clause

++++++ v4.19.1.tar.gz -> v4.19.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/breathe-4.19.1/.github/workflows/unit_tests.yml 
new/breathe-4.19.2/.github/workflows/unit_tests.yml
--- old/breathe-4.19.1/.github/workflows/unit_tests.yml 2020-06-08 
16:57:46.000000000 +0200
+++ new/breathe-4.19.2/.github/workflows/unit_tests.yml 2020-06-17 
22:03:59.000000000 +0200
@@ -9,7 +9,8 @@
         python-version: [3.5, 3.6, 3.7, 3.8]
         sphinx-version:
           - 3.0.0
-          - git+https://github.com/sphinx-doc/[email protected]
+          - 3.1.0
+          - git+https://github.com/sphinx-doc/[email protected]
           - git+https://github.com/sphinx-doc/[email protected]
           # master (Sphinx 4) will require at least Python 3.6, so disable it 
for now
           #- git+https://github.com/sphinx-doc/sphinx.git@master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/breathe-4.19.1/README.rst 
new/breathe-4.19.2/README.rst
--- old/breathe-4.19.1/README.rst       2020-06-08 16:57:46.000000000 +0200
+++ new/breathe-4.19.2/README.rst       2020-06-17 22:03:59.000000000 +0200
@@ -173,6 +173,10 @@
 
 Inspired by `Keepachangelog.com <http://keepachangelog.com/>`__.
 
+- 2020-06-17 - Breathe v4.19.2
+
+  - Fix crash when visiting typedef. #547
+
 - 2020-06-08 - Breathe v4.19.1
 
   - Mark package as compatible with Sphinx 3.1.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/breathe-4.19.1/breathe/__init__.py 
new/breathe-4.19.2/breathe/__init__.py
--- old/breathe-4.19.1/breathe/__init__.py      2020-06-08 16:57:46.000000000 
+0200
+++ new/breathe-4.19.2/breathe/__init__.py      2020-06-17 22:03:59.000000000 
+0200
@@ -4,7 +4,7 @@
 
 from sphinx.application import Sphinx
 
-__version__ = '4.19.1'
+__version__ = '4.19.2'
 
 
 def setup(app: Sphinx):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/breathe-4.19.1/breathe/renderer/sphinxrenderer.py 
new/breathe-4.19.2/breathe/renderer/sphinxrenderer.py
--- old/breathe-4.19.1/breathe/renderer/sphinxrenderer.py       2020-06-08 
16:57:46.000000000 +0200
+++ new/breathe-4.19.2/breathe/renderer/sphinxrenderer.py       2020-06-17 
22:03:59.000000000 +0200
@@ -1455,13 +1455,18 @@
         names = self.get_qualification()
         names.append(node.get_name())
         name = self.join_nested_name(names)
-        if node.definition.startswith('typedef '):
-            declaration = ' '.join([type_, name, node.get_argsstring()])
-        elif node.definition.startswith('using '):
+        if node.definition.startswith('using '):
             # TODO: looks like Doxygen does not generate the proper XML
-            #       for the template paramter list
+            #       for the template parameter list
             declaration = self.create_template_prefix(node)
             declaration += ' ' + name + " = " + type_
+        else:
+            # TODO: Both "using" and "typedef" keywords get into this function,
+            #   and if no @typedef comment was added, the definition should
+            #   contain the full text. If a @typedef was used instead, the
+            #   definition has only the typename, which makes it impossible to
+            #   distinguish between them so fallback to "typedef" behavior 
here.
+            declaration = ' '.join([type_, name, node.get_argsstring()])
         return self.handle_declaration(node, declaration)
 
     def make_initializer(self, node) -> str:


Reply via email to