aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2011-03-19 00:23:36 +0000
committerGraeme Gregory <dp@xora.org.uk>2011-03-19 00:25:03 +0000
commitb091590f9169152dc4a6857fa8f37d67d7f03317 (patch)
tree53da71423172a1be0e9cba437946ed333d15adfc
parentb610b316d431f832086782a27ec9d872814a0e86 (diff)
downloadopenembedded-b091590f9169152dc4a6857fa8f37d67d7f03317.tar.gz
openembedded-b091590f9169152dc4a6857fa8f37d67d7f03317.tar.bz2
openembedded-b091590f9169152dc4a6857fa8f37d67d7f03317.zip
angstrom.bbclass : make message use DISTRO var
Use the DISTRO variable for the name of the distro making this class distro neutral. Signed-off-by: Graeme Gregory <dp@xora.org.uk>
-rw-r--r--classes/angstrom.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/angstrom.bbclass b/classes/angstrom.bbclass
index 4a810a638a..f1146edd82 100644
--- a/classes/angstrom.bbclass
+++ b/classes/angstrom.bbclass
@@ -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))
}