diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 11:45:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 14:35:16 +0100 |
commit | 1bf8d83d5a570e06e00b4ed47f268d522647e6ed (patch) | |
tree | d575a6a7a5ddb397a601b1edf42f52fdfcd01c66 /meta | |
parent | 641a80d760afd2c05804f2f7aaff98a2e18ad5d6 (diff) | |
download | poky-1bf8d83d5a570e06e00b4ed47f268d522647e6ed.tar.gz |
utils: Update bb.which reference and other syntax cleanup
* bb.which -> bb.utiis.which()
* Use modern form of datastore access
* Use True, not 1
* Drop pointless imports
(From OE-Core rev: 106a4f5b41e5bdeabe588b9ba362f3693b1a9989)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/utils.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index e873c539c5..d1f6563a0a 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -293,11 +293,9 @@ END | |||
293 | } | 293 | } |
294 | 294 | ||
295 | def check_app_exists(app, d): | 295 | def check_app_exists(app, d): |
296 | from bb import which, data | 296 | app = d.expand(app) |
297 | 297 | path = d.getVar('PATH', d, True) | |
298 | app = data.expand(app, d) | 298 | return bool(bb.utils.which(path, app)) |
299 | path = data.getVar('PATH', d, 1) | ||
300 | return bool(which(path, app)) | ||
301 | 299 | ||
302 | def explode_deps(s): | 300 | def explode_deps(s): |
303 | return bb.utils.explode_deps(s) | 301 | return bb.utils.explode_deps(s) |