Patchwork [1/2] base: Show PRINC value in the warning message

login
register
mail settings
Submitter Martin Jansa
Date March 5, 2014, 5:17 p.m.
Message ID <1394039838-8933-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/68071/
State Accepted
Commit 1dc068cb0aff7c5576952d353a42c624f4501d3d
Headers show

Comments

Martin Jansa - March 5, 2014, 5:17 p.m.
* it's useful to know by how much we need to bump PR in original recipe to preserve upgrade path

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 27b5f53..76a4ef6 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -461,7 +461,7 @@  python () {
     # obsolete.  Return a warning to the user.
     princ = d.getVar('PRINC', True)
     if princ and princ != "0":
-        bb.warn("Use of PRINC 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." % 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)