summaryrefslogtreecommitdiff
path: root/classes/insane.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-06-08 23:27:51 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-06-08 23:33:55 +0200
commit66c5bc0721af14f4526f8ee7f14cb8569b0862e5 (patch)
treebf7142b8d7b58ed049c0e766bb5adca0f27860ee /classes/insane.bbclass
parent9d886cd149d1ed68dfb82ca0a4a01112a187ea05 (diff)
insane.bbclass: set PATH before calling desktop-file-validate
* otherwise fails on hosts without desktop-file-utils installed, because cannot find binaries from desktop-file-utils-native Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'classes/insane.bbclass')
-rw-r--r--classes/insane.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 2118a27fbd..9ce348ddeb 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -255,8 +255,10 @@ def package_qa_check_desktop(path, name, d, elf):
Run all desktop files through desktop-file-validate.
"""
sane = True
+ env_path = bb.data.getVar('PATH', d, True)
+
if path.endswith(".desktop"):
- output = os.popen("desktop-file-validate %s" % path)
+ output = os.popen("PATH=%s desktop-file-validate %s" % (env_path, path))
# This only produces output on errors
for l in output:
sane = package_qa_handle_error(7, l.strip(), name, path, d)