Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: Use bb.warn instead of bb.error for deprecation notification.
@ 2015-02-02 10:30 Florian Boor
  2015-02-03 10:43 ` Paul Eggleton
  2015-02-03 12:04 ` Otavio Salvador
  0 siblings, 2 replies; 11+ messages in thread
From: Florian Boor @ 2015-02-02 10:30 UTC (permalink / raw)
  To: openembedded-core

An error in bitbake/OE context is something fatal and interrupts the build.
A deprecation warning is exactly what we have bb.warn for.

Signed-off-by: Florian Boor <florian.boor@kernelconcepts.de>
---
 meta/classes/base.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index de50be1..b5186bf 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -374,7 +374,7 @@ python () {
     # obsolete.  Return a warning to the user.
     princ = d.getVar('PRINC', True)
     if princ and princ != "0":
-        bb.error("Use of PRINC %s was detected in the recipe %s (or one of its .bbappends)\nUse of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service." % (princ, d.getVar("FILE", True)))
+        bb.warn("Use of PRINC %s was detected in the recipe %s (or one of its .bbappends)\nUse of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service." % (princ, d.getVar("FILE", True)))
         pr = d.getVar('PR', True)
         pr_prefix = re.search("\D+",pr)
         prval = re.search("\d+",pr)
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-03 13:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 10:30 [PATCH] base.bbclass: Use bb.warn instead of bb.error for deprecation notification Florian Boor
2015-02-03 10:43 ` Paul Eggleton
2015-02-03 12:04 ` Otavio Salvador
2015-02-03 12:36   ` Florian Boor
2015-02-03 12:40     ` Burton, Ross
2015-02-03 12:50       ` Florian Boor
2015-02-03 12:53         ` Otavio Salvador
2015-02-03 13:00           ` Burton, Ross
2015-02-03 13:02             ` Otavio Salvador
2015-02-03 13:20               ` Richard Purdie
2015-02-03 13:24             ` Florian Boor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox