summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-17 11:45:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-17 14:11:59 +0100
commit106a4f5b41e5bdeabe588b9ba362f3693b1a9989 (patch)
treed995263a1813dd5974e1b4600c43492e316e19c3 /meta/classes
parentbcf83bb604906361db98003127b90c422e822322 (diff)
downloadopenembedded-core-106a4f5b41e5bdeabe588b9ba362f3693b1a9989.tar.gz
openembedded-core-106a4f5b41e5bdeabe588b9ba362f3693b1a9989.tar.bz2
openembedded-core-106a4f5b41e5bdeabe588b9ba362f3693b1a9989.zip
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 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/utils.bbclass8
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
}
def check_app_exists(app, d):
- from bb import which, data
-
- app = data.expand(app, d)
- path = data.getVar('PATH', d, 1)
- return bool(which(path, app))
+ app = d.expand(app)
+ path = d.getVar('PATH', d, True)
+ return bool(bb.utils.which(path, app))
def explode_deps(s):
return bb.utils.explode_deps(s)