SPDX: use 'AND' instead of '&' - #327
Conversation
Convert the LICENSE string to the new Yocto rules. Done with `openembedded-core/scripts/contrib/convert-spdx-licenses.py` @see: ros-infrastructure/superflore#327 Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com> Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
|
Thanks @vermaete. I can't merge this as it is as it would break support for Scarthgap and Wrynose. There is already an example of making changes based on the target Yocto release. See here for details: https://github.com/ros-infrastructure/superflore/blob/master/superflore/generators/bitbake/yocto_recipe.py#L513 Would it be possible to rework this PR to make it only applicable to Blacksail and later releases? |
|
@robwoolley I have added the check on the Yocto version. |
|
What do you think of adding the whitespace to _concat (eg. " AND " and " & ") to avoid having to use the formatted string? eg. becomes: |
|
This change looks correct but failed in testing because of how scripts/ros-generate-recipes.sh works. I need to fix the script to validate this fix. |
90c6c42 to
c2a5fab
Compare
robwoolley
left a comment
There was a problem hiding this comment.
This is great. Thank you. I have run CI builds to confirm that this is working.
The SPDX specification no longer accepts '&' as a license operator. Replace it with 'AND' to comply with the SPDX rules used by Yocto. Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
robwoolley
left a comment
There was a problem hiding this comment.
PEP8 is finally satisfied with the line lengths.
The SPDX specification no longer accepts '&' as a license operator. Replace it with 'AND' to comply with the SPDX rules used by Yocto.
@robwoolley I have tested it with a local script. Not with the 'Actions' of Github. But we do need it at master. Could you redo the latest sync of master/rolling so I can verify it and finish the recipes in
meta-ros2andmeta-ros-common?