Patchwork [core] fix usage of bb.warn

login
register
mail settings
Submitter kim.hansen@prevas.dk
Date Sept. 13, 2013, 11 a.m.
Message ID <1379070057-2810-1-git-send-email-kim.hansen@prevas.dk>
Download mbox | patch
Permalink /patch/274727/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

kim.hansen@prevas.dk - Sept. 13, 2013, 11 a.m.
From: Kim Højgaard-Hansen <kiho@prevas.dk>

---
 classes/package.oeclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Esben Haabendal - Sept. 17, 2013, 6:42 p.m.
<kim.hansen@prevas.dk> writes:

> From: Kim Højgaard-Hansen <kiho@prevas.dk>
>
> ---
>  classes/package.oeclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/classes/package.oeclass b/classes/package.oeclass
> index c37f3c1..d3f3998 100644
> --- a/classes/package.oeclass
> +++ b/classes/package.oeclass
> @@ -153,7 +153,7 @@ def do_package(d):
>  
>      packages = (d.getVar("PACKAGES", True) or "").split()
>      if len(packages) < 1:
> -        bb.warn(1, "no packages")
> +        bb.warn("no packages")
>          return
>  
>      pkgmetadir = d.get("pkgmetadir").lstrip("/")

Merged to master, thanks.

/Esben

Patch

diff --git a/classes/package.oeclass b/classes/package.oeclass
index c37f3c1..d3f3998 100644
--- a/classes/package.oeclass
+++ b/classes/package.oeclass
@@ -153,7 +153,7 @@  def do_package(d):
 
     packages = (d.getVar("PACKAGES", True) or "").split()
     if len(packages) < 1:
-        bb.warn(1, "no packages")
+        bb.warn("no packages")
         return
 
     pkgmetadir = d.get("pkgmetadir").lstrip("/")