The do_populate_sdk is finishing OK even when there are errors present in the build
I'm running some test with do_populate_sdk task and I'm seeing this on the log:
check_data_file_clashes: Package kmsxx-dbg wants to install file /home/builder/build/tmp/work/foo-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/bar/sysroots/aarch64-poky-linux/usr/bin/.debug/kmstest
But that file is already provided by package * libdrm-dbg
I also see this kind of message with other packages.
Looking in the source code I found that the install_complementary function runs this  with attempt_only=True, and if attempt_only is true log above it's just a warning, as shown here .
This  comment says that "will only attempt to install these packages, if they don't exist then no error will occur."
My question is how can I force an error and not just a warning when running do_populate_sdk?
I understand that I can change  to run:
so, it'll use set attempt_only to False, that is the default, but I think this will break some use cases.
What is the correct behaviour here, see the warning messages and fix the packages to avoid "file is already provided by package" messages, every time I create a SDK or change in some way to see an error message and stop SDK generation?
What is the correct behavior here, inspect the warning messages, and fix the packages to avoid "file is already provided by package" messages, every time I create an SDK or change it in some way to see an error message and stop the SDK generation?
 - https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/__init__.py#n401
 - https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/ipk/__init__.py#n371