Re: [OE-core] [PATCH] license_image: Prevent do_populate_lic_deploy from using image recipes' recipeinfo

2021-10-28 Thread Tomasz Dziendzielski
Unfortunately from what I just checked we cannot merge license manifests because new manifest creation would require additional package sstate-cache manifests (to get package contents) or to use package manager to get FILES contect. That's also not really correct, since in license.manifest we

Re: [OE-core] [PATCH] license_image: Prevent do_populate_lic_deploy from using image recipes' recipeinfo

2021-10-27 Thread Tomasz Dziendzielski
>a) we can't tell the difference between a broken recipe which failed to generate >recipeinfo for some reason and an image target We can, only image targets generate image_license.manifest and license.manifest, that's why in the patch I'm checking for it. >b) The license info is effectively

Re: [OE-core] [PATCH] license_image: Prevent do_populate_lic_deploy from using image recipes' recipeinfo

2021-10-26 Thread Richard Purdie
On Tue, 2021-10-26 at 09:32 +0200, Tomasz Dziendzielski wrote: > If image recipe depends on another image recipe it will try to use > license recipeinfo that is not deployed. It will result in: > > Exception: FileNotFoundError: [Errno 2] No such file or directory: > >

[OE-core] [PATCH] license_image: Prevent do_populate_lic_deploy from using image recipes' recipeinfo

2021-10-26 Thread Tomasz Dziendzielski
If image recipe depends on another image recipe it will try to use license recipeinfo that is not deployed. It will result in: | Exception: FileNotFoundError: [Errno 2] No such file or directory: | 'TMPDIR/deploy/licenses/foo-image/recipeinfo' In such case check for image_license.manifest file