From 0734ae0ef719209d1bd50921f722b1f6ee3ef36a Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 18 Sep 2020 07:09:42 -0700 Subject: [PATCH] package_templates.py: Use more specific TODO license TODO-CATKIN-PACKAGE-LICENSE Signed-off-by: Martin Jansa --- src/catkin_pkg/package.py | 2 +- src/catkin_pkg/package_templates.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catkin_pkg/package.py b/src/catkin_pkg/package.py index 737bbead..b19ced6d 100644 --- a/src/catkin_pkg/package.py +++ b/src/catkin_pkg/package.py @@ -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 diff --git a/src/catkin_pkg/package_templates.py b/src/catkin_pkg/package_templates.py index d539d2f8..db6ccc03 100644 --- a/src/catkin_pkg/package_templates.py +++ b/src/catkin_pkg/package_templates.py @@ -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()]