dev-manual: pass False to d.getVar() for devpyshell example
PATCH 1/1 dev-manual: pass False to d.getVar() for devpyshell example
In the example in section 3.9, the call to d.getVar() needs to have the additional arugment of "False" so that the output is not expanded.
---
pretty sure it works this way.
documentation/dev-manual/common-tasks.rst +1 -1
@@ -3486,7 +3486,7 @@ functions:: pydevshell> d.getVar("STAGING_DIR") '/media/build1/poky/build/tmp/sysroots' - pydevshell> d.getVar("STAGING_DIR") + pydevshell> d.getVar("STAGING_DIR", False) '${TMPDIR}/sysroots' pydevshell> d.setVar("FOO", "bar") pydevshell> d.getVar("FOO")
Signature · 6 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Hi Robert,
Quoted 10 lines · Robert P. J. Day
In the example in section 3.9, the call to
d.getVar()needs to have the additional arugment of "False" so that the output is not expanded.Signed-off-by Robert P. J. Day <[email protected]>---
pretty sure it works this way.
The second positional argument is indeed "expand", which by default is true.
Thanks!
Quentin
Michael Opdenacker
Tested-byQuoted 8 lines · Quentin Schulz
Hi Robert,
Quoted 5 lines · Robert P. J. Day
In the example in section 3.9, the call to
d.getVar()needs to have the additional arugment of "False" so that the output is not expanded.Signed-off-by Robert P. J. Day <[email protected]>
Quoted 8 lines
Quoted 4 lines
---
pretty sure it works this way.
The second positional argument is indeed "expand", which by default is true.
Reviewed-by Quentin Schulz <[email protected]>
Now merged in "master-next".
Thanks for the patch and the review!
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com