diff mbox

[core] fix usage of bb.warn

Message ID 1379070057-2810-1-git-send-email-kim.hansen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

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

---
 classes/package.oeclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Esben Haabendal Sept. 17, 2013, 6:42 p.m. UTC | #1
<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
diff mbox

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("/")