diff options
Diffstat (limited to 'scripts/lib/wic/utils/oe/misc.py')
-rw-r--r-- | scripts/lib/wic/utils/oe/misc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index f08ff15a34..2f916ddf45 100644 --- a/scripts/lib/wic/utils/oe/misc.py +++ b/scripts/lib/wic/utils/oe/misc.py | |||
@@ -38,7 +38,7 @@ def __exec_cmd(cmd_and_args, as_shell=False, catch=3): | |||
38 | args = cmd_and_args.split() | 38 | args = cmd_and_args.split() |
39 | msger.debug(args) | 39 | msger.debug(args) |
40 | 40 | ||
41 | if (as_shell): | 41 | if as_shell: |
42 | rc, out = runner.runtool(cmd_and_args, catch) | 42 | rc, out = runner.runtool(cmd_and_args, catch) |
43 | else: | 43 | else: |
44 | rc, out = runner.runtool(args, catch) | 44 | rc, out = runner.runtool(args, catch) |
@@ -142,7 +142,7 @@ def find_artifact(bitbake_env_lines, variable): | |||
142 | retval = "" | 142 | retval = "" |
143 | 143 | ||
144 | for line in bitbake_env_lines.split('\n'): | 144 | for line in bitbake_env_lines.split('\n'): |
145 | if (get_line_val(line, variable)): | 145 | if get_line_val(line, variable): |
146 | retval = get_line_val(line, variable) | 146 | retval = get_line_val(line, variable) |
147 | break | 147 | break |
148 | 148 | ||
@@ -160,7 +160,7 @@ def get_line_val(line, key): | |||
160 | 160 | ||
161 | def get_bitbake_var(key): | 161 | def get_bitbake_var(key): |
162 | for line in __bitbake_env_lines.split('\n'): | 162 | for line in __bitbake_env_lines.split('\n'): |
163 | if (get_line_val(line, key)): | 163 | if get_line_val(line, key): |
164 | val = get_line_val(line, key) | 164 | val = get_line_val(line, key) |
165 | return val | 165 | return val |
166 | return None | 166 | return None |