summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-20 14:10:29 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 12:36:08 +0100
commit8313ceae261d626e6d172f6aad643e1abe2b2833 (patch)
tree029e3de5ebbb830a4f1e112fe6ceb52ecb6c86c4 /scripts/lib
parent31324ed0ea7fcc7fbfc7c2dfcdce8a571d3111c9 (diff)
downloadpoky-8313ceae261d626e6d172f6aad643e1abe2b2833.tar.gz
wic: deferred call of hlp.get_wic_plugins_help()
If get_wic_plugins_help is called from wic main module it calls git_bitbake_var at some point. This fails when wic is called from bitbake as 'bitbake -e' can't be run. Moved call of this method to help.py in order to call it later, when BitbakeVariables singleton is properly initialized to get variables from .env files. (From OE-Core rev: d401a8518fb4b0e8adeb34be8948fa780299870c) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/image/help.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py
index dc6ff36610..717d84755f 100644
--- a/scripts/lib/image/help.py
+++ b/scripts/lib/image/help.py
@@ -42,6 +42,8 @@ def display_help(subcommand, subcommands):
42 return False 42 return False
43 43
44 hlp = subcommands.get(subcommand, subcommand_error)[2] 44 hlp = subcommands.get(subcommand, subcommand_error)[2]
45 if callable(hlp):
46 hlp = hlp()
45 pager = subprocess.Popen('less', stdin=subprocess.PIPE) 47 pager = subprocess.Popen('less', stdin=subprocess.PIPE)
46 pager.communicate(hlp) 48 pager.communicate(hlp)
47 49