insane.bbclass: set PATH before calling desktop-file-validate
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 8 Jun 2010 21:27:51 +0000 (23:27 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Tue, 8 Jun 2010 21:33:55 +0000 (23:33 +0200)
* 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>
classes/insane.bbclass

index 2118a27..9ce348d 100644 (file)
@@ -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)