poky/scripts/lib/recipetool
Stefan Herbrechtsmeier f72889eb00 recipetool: Do not use mutable default arguments in Python
Remove mutable default arguments in Python because they can lead to all
sorts of nasty and horrible bugs.

https://florimond.dev/en/posts/2018/08/python-mutable-defaults-are-the-source-of-all-evil/

Revert `recipetool: Change default paramter fallback_licenses of
function split_pkg_licenses from None to []` and instead check
fallback_licenses before use.

(From OE-Core rev: 99dee60b8db557f54783bf0f61098587badc683c)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-04-19 14:14:12 +01:00
..
__init__.py scripts/recipetool: Add a recipe auto-creation script 2014-12-23 10:18:15 +00:00
append.py package/scripts: Fix FILES_INFO handling 2021-08-17 09:53:04 +01:00
create_buildsys_python.py recipetool: Use SPDX license identifiers 2022-03-01 23:44:59 +00:00
create_buildsys.py recipetool: extend curl detection when creating recipes 2021-12-03 23:37:16 +00:00
create_kernel.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
create_kmod.py Convert to new override syntax 2021-08-02 15:44:10 +01:00
create_npm.py recipetool: npm: Use README as license fallback 2021-10-14 11:48:45 +01:00
create.py recipetool: Do not use mutable default arguments in Python 2022-04-19 14:14:12 +01:00
edit.py recipetool: Fix list concatenation when using edit 2020-06-15 14:53:45 +01:00
licenses.csv recipetool/devtool: Further SPDX identifier cleanups 2022-03-02 18:43:24 +00:00
newappend.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
setvar.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00