angstrom.bbclass : make message use DISTRO var
authorGraeme Gregory <dp@xora.org.uk>
Sat, 19 Mar 2011 00:23:36 +0000 (00:23 +0000)
committerGraeme Gregory <dp@xora.org.uk>
Sat, 19 Mar 2011 00:25:03 +0000 (00:25 +0000)
Use the DISTRO variable for the name of the distro making this class
distro neutral.

Signed-off-by: Graeme Gregory <dp@xora.org.uk>
classes/angstrom.bbclass

index 4a810a6..f1146ed 100644 (file)
@@ -10,10 +10,11 @@ python () {
 
     blacklist = bb.data.getVar("ANGSTROM_BLACKLIST", d, 1)
     pkgnm = bb.data.getVar("PN", d, 1)
+    distro = bb.data.getVar("DISTRO", d, 1)
 
     if blacklist:
-       bb.note("Angstrom DOES NOT support %s because %s" % (pkgnm, blacklist))
-        raise bb.parse.SkipPackage("Angstrom DOES NOT support %s because %s" % (pkgnm, blacklist))
+       bb.note("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist))
+        raise bb.parse.SkipPackage("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist))
 
 }