]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: use 'desktop-file-validate' from staging not from host system
authorMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 3 Apr 2008 05:17:32 +0000 (05:17 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 3 Apr 2008 05:17:32 +0000 (05:17 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4159 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/insane.bbclass

index 2ef5527dac37970d3fc569ad4f1d2219b6e94c24..d1bea891331262b9442fe46b47146ea535a473fd 100644 (file)
@@ -313,7 +313,8 @@ def package_qa_check_desktop(path, name, d):
     import bb, os
     sane = True
     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
         for l in output:
             sane = package_qa_handle_error(7, l.strip(), name, path, d)