wic: rootfs-u-boot: Fix package name in error message

Message ID 925b9cf7-ffbd-4737-854c-f0870e169340@siemens.com
State Accepted, archived
Headers show
Series wic: rootfs-u-boot: Fix package name in error message | expand

Commit Message

Jan Kiszka Feb. 5, 2024, 6:45 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

MOESSBAUER, Felix Feb. 5, 2024, 7:37 a.m. UTC | #1
On Mon, 2024-02-05 at 07:45 +0100, 'Jan Kiszka' via isar-users wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

Good catch and a trivial fix!

Acked-by: Felix Moessbauer <felix.moessbauer@siemens.com>

> ---
>  meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> index b7011775..7dde49d4 100644
> --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> @@ -71,7 +71,7 @@ class RootfsUBootPlugin(RootfsPlugin):
>          u_boot_script = os.path.join(real_rootfs_dir,
>                                       "etc/default/u-boot-script")
>          if not os.path.exists(u_boot_script):
> -            raise WicError("u-boot-scripts package not installed")
> +            raise WicError("u-boot-script package not installed")
>  
>          # Write new /etc/default/u-boot-script
>          with open(u_boot_script, 'w') as cfg:
> -- 
> 2.35.3
>
Uladzimir Bely Feb. 12, 2024, 8:15 a.m. UTC | #2
On Mon, 2024-02-05 at 07:45 +0100, 'Jan Kiszka' via isar-users wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> index b7011775..7dde49d4 100644
> --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> @@ -71,7 +71,7 @@ class RootfsUBootPlugin(RootfsPlugin):
>          u_boot_script = os.path.join(real_rootfs_dir,
>                                       "etc/default/u-boot-script")
>          if not os.path.exists(u_boot_script):
> -            raise WicError("u-boot-scripts package not installed")
> +            raise WicError("u-boot-script package not installed")
>  
>          # Write new /etc/default/u-boot-script
>          with open(u_boot_script, 'w') as cfg:
> -- 
> 2.35.3
> 

Applied to next, thanks.

Patch

diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
index b7011775..7dde49d4 100644
--- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
+++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
@@ -71,7 +71,7 @@  class RootfsUBootPlugin(RootfsPlugin):
         u_boot_script = os.path.join(real_rootfs_dir,
                                      "etc/default/u-boot-script")
         if not os.path.exists(u_boot_script):
-            raise WicError("u-boot-scripts package not installed")
+            raise WicError("u-boot-script package not installed")
 
         # Write new /etc/default/u-boot-script
         with open(u_boot_script, 'w') as cfg: