On Tue, Jan 14, 2025 at 4:38 PM Niko Mauno via lists.openembedded.org
<niko.mauno=vaisala....@lists.openembedded.org> wrote:

> Allow the method to work also when the user has overridden
> IMAGE_LINK_NAME value as empty string.
>
> Signed-off-by: Niko Mauno <niko.ma...@vaisala.com>
> ---
>  meta/classes/vex.bbclass | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/vex.bbclass b/meta/classes/vex.bbclass
> index c9749d4ceb..3719e5c222 100644
> --- a/meta/classes/vex.bbclass
> +++ b/meta/classes/vex.bbclass
> @@ -211,13 +211,15 @@ python vex_write_rootfs_manifest () {
>
>      d.setVar("PN", save_pn)
>
> -    link_path = os.path.join(deploy_dir, "%s.json" % link_name)
>      manifest_name = d.getVar("CVE_CHECK_MANIFEST_JSON")
>
>      with open(manifest_name, "w") as f:
>          json.dump(json_data, f, indent=2)
>
> -    update_symlinks(manifest_name, link_path)
> +    if link_name:
> +        link_path = os.path.join(deploy_dir, "%s.json" % link_name)
> +        update_symlinks(manifest_name, link_path)
> +
>      bb.plain("Image VEX JSON report stored in: %s" % manifest_name)
>  }
>
>
What about a common function to use in both cve-check.bbclass and
vex.bbclass?

Also, it would be helpful to document what happens when the variable is
empty.

Kind regards,
Marta
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#209809): 
https://lists.openembedded.org/g/openembedded-core/message/209809
Mute This Topic: https://lists.openembedded.org/mt/110609363/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to