]> code.ossystems Code Review - openembedded-core.git/commitdiff
base: Show PRINC value in the warning message
authorMartin Jansa <martin.jansa@gmail.com>
Wed, 5 Mar 2014 17:17:17 +0000 (18:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Mar 2014 17:26:24 +0000 (17:26 +0000)
* 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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass

index 27b5f53a09aac20502211298046d41ba4ac720ac..76a4ef650d767cc931beac093c67b03b8c803561 100644 (file)
@@ -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)