Skip to content

Commit

Permalink
[rospack.py] Use 'None' for errored pkg name (#133 (comment))
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed May 31, 2020
1 parent d22099e commit 0e8618a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rospkg/rospack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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():
Expand Down

0 comments on commit 0e8618a

Please sign in to comment.