From 04be6905562aff61735c9387b1385ae54be0a2b7 Mon Sep 17 00:00:00 2001 From: "Isaac I.Y. Saito" <130s@2000.jukuin.keio.ac.jp> Date: Tue, 5 May 2020 02:02:08 -0700 Subject: [PATCH] [rospack.py] Use 'None' for errored pkg name (https://github.com/ros-infrastructure/rospkg/pull/133#discussion_r270967801) --- src/rospkg/rospack.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rospkg/rospack.py b/src/rospkg/rospack.py index ff32ae94..252f6812 100644 --- a/src/rospkg/rospack.py +++ b/src/rospkg/rospack.py @@ -402,7 +402,6 @@ def get_licenses(self, pkg_name, implicit=True): @rtype { k, [d] } @raise ResourceNotFound """ - MSG_LICENSE_NOTFOUND_SYSPKG = "ERR" license_dict = defaultdict(list) self.get_depends(name=pkg_name, implicit=implicit) @@ -414,7 +413,7 @@ def get_licenses(self, pkg_name, implicit=True): # Traverse for Non-ROS, system packages pkgnames_rosdep = self.get_rosdeps(package=pkg_name, implicit=implicit) for pkgname_rosdep in pkgnames_rosdep: - license_dict[MSG_LICENSE_NOTFOUND_SYSPKG].append(pkgname_rosdep) + license_dict[None].append(pkgname_rosdep) # Sort pkg names in each license for list_key in license_dict.values():