1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

insane.bbclass: use 'desktop-file-validate' from staging not from host system

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4159 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2008-04-03 05:17:32 +00:00
parent 1fb5af0f40
commit fd652ded2e
+2 -1
View File
@@ -313,7 +313,8 @@ def package_qa_check_desktop(path, name, d):
import bb, os import bb, os
sane = True sane = True
if path.endswith(".desktop"): if path.endswith(".desktop"):
output = os.popen("desktop-file-validate %s" % path) desktop_file_validate = os.path.join(bb.data.getVar('STAGING_BINDIR_NATIVE',d,True),'desktop-file-validate')
output = os.popen("%s %s" % (desktop_file_validate, path))
# This only produces output on errors # This only produces output on errors
for l in output: for l in output:
sane = package_qa_handle_error(7, l.strip(), name, path, d) sane = package_qa_handle_error(7, l.strip(), name, path, d)