[ros-genpy] 01/05: New upstream version 0.6.7

Jochen Sprickerhof jspricke at moszumanska.debian.org
Sat Oct 28 08:12:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

jspricke pushed a commit to annotated tag debian/0.6.7-1
in repository ros-genpy.

commit 897ffebc9ee1db66dd74a18b92c8ee5e346da353
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Sat Oct 28 10:09:34 2017 +0200

    New upstream version 0.6.7
---
 CHANGELOG.rst          | 5 +++++
 package.xml            | 2 +-
 src/genpy/dynamic.py   | 2 +-
 src/genpy/generator.py | 3 ++-
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 416a9dd..d4e8e1f 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,11 @@
 Changelog for package genpy
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+0.6.7 (2017-10-26)
+------------------
+* use errno to detect existing dir (`#89 <https://github.com/ros/genpy/issues/89>`_)
+* fix typo (`#84 <https://github.com/ros/genpy/issues/84>`_)
+
 0.6.6 (2017-07-27)
 ------------------
 * add escaping for strings which is valid in YAML (`#79 <https://github.com/ros/genpy/issues/79>`_)
diff --git a/package.xml b/package.xml
index 75be192..5519c53 100644
--- a/package.xml
+++ b/package.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <package>
   <name>genpy</name>
-  <version>0.6.6</version>
+  <version>0.6.7</version>
   <description>Python ROS message and service generators.</description>
   <maintainer email="dthomas at osrfoundation.org">Dirk Thomas</maintainer>
   <license>BSD</license>
diff --git a/src/genpy/dynamic.py b/src/genpy/dynamic.py
index cccfd73..fb3e9bb 100644
--- a/src/genpy/dynamic.py
+++ b/src/genpy/dynamic.py
@@ -112,7 +112,7 @@ def generate_dynamic(core_type, msg_cat):
     Dymamically generate message classes from msg_cat .msg text
     gendeps dump. This method modifies sys.path to include a temp file
     directory.
-    :param core_type str: top-level ROS message type of concatenanted .msg text
+    :param core_type str: top-level ROS message type of concatenated .msg text
     :param msg_cat str: concatenation of full message text (output of gendeps --cat)
     :raises: MsgGenerationException If dep_msg is improperly formatted
     """
diff --git a/src/genpy/generator.py b/src/genpy/generator.py
index 4a70653..82b2432 100644
--- a/src/genpy/generator.py
+++ b/src/genpy/generator.py
@@ -47,6 +47,7 @@ The structure of the serialization descends several levels of serializers:
 
 from __future__ import print_function
 
+import errno
 import os
 import keyword
 import itertools
@@ -957,7 +958,7 @@ class Generator(object):
             # you can't just check first... race condition
             os.makedirs(outdir)
         except OSError as e:
-            if e.errno != 17: # file exists
+            if e.errno != errno.EEXIST:
                 raise
         # generate message files for request/response
         spec = self.spec_loader_fn(msg_context, f, full_type)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/ros-genpy.git



More information about the debian-science-commits mailing list