Skip to content

Commit

Permalink
package_templates.py: Use more specific TODO license TODO-CATKIN-PACK…
Browse files Browse the repository at this point in the history
…AGE-LICENSE

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
  • Loading branch information
shr-project committed Sep 18, 2020
1 parent f040d77 commit 0734ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/catkin_pkg/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def validate_licenses(licenses, warnings):
if is_valid_spdx_identifier(lic):
continue

if lic == 'TODO':
if lic == 'TODO-CATKIN-PACKAGE-LICENSE':
warnings.append('The license value "%s" is only temporary from the template, replace it with correct value' % (lic))
continue

Expand Down
2 changes: 1 addition & 1 deletion src/catkin_pkg/package_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _create_package_template(package_name, description=None, licenses=None,
:param catkin_deps:
"""
# Sort so they are alphebetical
licenses = list(licenses or ['TODO'])
licenses = list(licenses or ['TODO-CATKIN-PACKAGE-LICENSE'])
licenses.sort()
if not maintainer_names:
maintainer_names = [getpass.getuser()]
Expand Down

0 comments on commit 0734ae0

Please sign in to comment.