Patchwork [1/1] yocto_kernel: modify the msg when adding duplicate items

login
register
mail settings
Submitter Ning Zhang
Date June 3, 2013, 5:21 a.m.
Message ID <fc2f4a65e654e548bfba36505ed37285270667f5.1370228342.git.ning.zhang@windriver.com>
Download mbox | patch
Permalink /patch/51075/
State New
Headers show

Comments

Ning Zhang - June 3, 2013, 5:21 a.m.
Privious check-in "yocto_kernel: check current items before add a
new one" had been merged before I apply the feedback from Zanussi, Tom.
Now fix it as a new patch.

This fix modify the output message when customer adding duplicate
items.

[YOCTO #4558]

Signed-off-by: Ning Zhang <ning.zhang@windriver.com>
---
 scripts/lib/bsp/kernel.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tom Zanussi - June 3, 2013, 12:22 p.m.
On Mon, 2013-06-03 at 13:21 +0800, Ning Zhang wrote:
> Privious check-in "yocto_kernel: check current items before add a
> new one" had been merged before I apply the feedback from Zanussi, Tom.
> Now fix it as a new patch.
> 
> This fix modify the output message when customer adding duplicate
> items.
> 
> [YOCTO #4558]
> 
> Signed-off-by: Ning Zhang <ning.zhang@windriver.com>

Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com>


> ---
>  scripts/lib/bsp/kernel.py |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py
> index 9ed6e94..94ae950 100644
> --- a/scripts/lib/bsp/kernel.py
> +++ b/scripts/lib/bsp/kernel.py
> @@ -260,7 +260,7 @@ def yocto_kernel_config_add(scripts_path, machine, config_items):
>              print "\t%s" % n
>  
>      if len(dup_items) > 0:
> -        output="Below item%s already exist%s in current configuration, ignore %s" % \
> +        output="The following item%s already exist%s in the current configuration, ignoring %s:" % \
>              (("","s", "it") if len(dup_items)==1 else ("s", "", "them" ))
>          print output
>          for n in dup_items:

Patch

diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py
index 9ed6e94..94ae950 100644
--- a/scripts/lib/bsp/kernel.py
+++ b/scripts/lib/bsp/kernel.py
@@ -260,7 +260,7 @@  def yocto_kernel_config_add(scripts_path, machine, config_items):
             print "\t%s" % n
 
     if len(dup_items) > 0:
-        output="Below item%s already exist%s in current configuration, ignore %s" % \
+        output="The following item%s already exist%s in the current configuration, ignoring %s:" % \
             (("","s", "it") if len(dup_items)==1 else ("s", "", "them" ))
         print output
         for n in dup_items: