pmbootstrap/pmb/parse
Oliver Smith 89cbae6d31
pmb.parse.kconfig.check: fix writing to list arg
Python passes all arguments by reference. For mutable objects such as
a list used here, changing the object will change the original one. If
components_list is not set, this means the default value gets modified.

This lead to kernels getting checked with the wrong required components.
For example, when checking a kernel from community first with the
default component_list, it would get extended with all options needed
for a kernel in community. When checking another kernel from the
testing category, also with the default component_list, it would now
check for the community options in the testing kernel.

Related: https://stackoverflow.com/a/986145
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230402124338.64886-1-ollieparanoid@postmarketos.org%3E
2023-04-05 08:53:05 +02:00
..
__init__.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
_apkbuild.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
apkindex.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
arch.py pmb.parse.arch: Include comma after last dictionary items 2023-03-16 08:58:34 +01:00
arguments.py pmb.parse.arguments: don't use python 3.9 feature 2023-04-04 09:13:09 +02:00
binfmt_info.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
bootimg.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
cpuinfo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
depends.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
deviceinfo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
kconfig.py pmb.parse.kconfig.check: fix writing to list arg 2023-04-05 08:53:05 +02:00
version.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00