]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: use bb.error when reporting desktop file problems
authorRoss Burton <ross@openedhand.com>
Wed, 14 Nov 2007 09:48:17 +0000 (09:48 +0000)
committerRoss Burton <ross@openedhand.com>
Wed, 14 Nov 2007 09:48:17 +0000 (09:48 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3152 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/insane.bbclass

index 7b7175232d884999d07580277e30810ee72a52e0..bc72ea5b3b506952c391771d772ca3bdc701c8c0 100644 (file)
@@ -318,7 +318,10 @@ def package_qa_check_desktop(path, name, d):
     import bb, os
     if path.endswith(".desktop"):
         validate = os.path.join(bb.data.getVar('STAGING_BINDIR_NATIVE',d,True), 'desktop-file-validate')
-        os.system ("%s %s" % (validate, path))
+        output = os.popen("%s %s" % (validate, path))
+        # This only produces output on errors
+        for l in output:
+            bb.error(l.strip())
     return True
 
 def package_qa_check_staged(path,d):