]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake-user-manual: Added note for Python variable ref expansion.
authorScott Rifenbark <srifenbark@gmail.com>
Tue, 23 Feb 2016 17:18:08 +0000 (09:18 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Mar 2016 17:33:59 +0000 (17:33 +0000)
Fixes [YOCTO #9148]

Added a note about Variable expressions (e.g. ${X}) are no longer
expanded within Python functions.

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
doc/bitbake-user-manual/bitbake-user-manual-metadata.xml

index cfa85b379a97a7c99b162abf4dd466f0eb49b77c..359df8f75fbd58a84265fda3cbe9deb7818ba075 100644 (file)
                 is a global variable and is always automatically
                 available.
            </para>
+
+           <note>
+                Variable expressions (e.g. <filename>${X}</filename>) are no
+                longer expanded within Python functions.
+                This behavior is intentional in order to allow you to freely
+                set variable values to expandable expressions without having
+                them expanded prematurely.
+                If you do wish to expand a variable within a Python function,
+                use <filename>d.getVar("X", True)</filename>.
+                Or, for more complicated expressions, use
+                <filename>d.expand()</filename>.
+           </note>
         </section>
 
         <section id='python-functions'>