summaryrefslogtreecommitdiffstats
path: root/meta/classes/blacklist.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-05-09 10:50:59 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-11 17:50:49 +0100
commit4ba6a866323ed6f569da74f6c7be03f3709d6aa1 (patch)
tree95caf7e4d3c5eeea9c6b19aa0fad539cfe1cbc32 /meta/classes/blacklist.bbclass
parent866424804ec70a269f5224147ff1449f9993e0ac (diff)
downloadpoky-4ba6a866323ed6f569da74f6c7be03f3709d6aa1.tar.gz
blacklist.bbclass: Refactor, use PNBLACKLIST[pn]
Revise the handling from ANGSTROM_BLACKLIST to PNBLACKLIST[pn]. Refactor the code to eliminate references to the distribution and recipe name in the message. Change the skipPackage message message from: ERROR: <recipe> was skipped: <distro> DOES NOT support <recipe> because <reason> to: ERROR: <recipe> was skipped: Recipe is blacklisted: <reason> (From OE-Core rev: 0893457465e184550906844fbab2dec397201835) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/blacklist.bbclass')
-rw-r--r--meta/classes/blacklist.bbclass22
1 files changed, 11 insertions, 11 deletions
diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass
index 7bf4a73a9a..75abd99c29 100644
--- a/meta/classes/blacklist.bbclass
+++ b/meta/classes/blacklist.bbclass
@@ -1,20 +1,20 @@
1# anonymous support class from angstrom 1# anonymous support class from originally from angstrom
2# 2#
3# To use the blacklist, a distribution should include this
4# class in the INHERIT_DISTRO
5#
6# No longer use ANGSTROM_BLACKLIST, instead use a table of
7# recipes in PNBLACKLIST
8#
3# Features: 9# Features:
4# 10#
5# * blacklist handling, set ANGSTROM_BLACKLIST_pn-blah = "message" 11# * To add a package to the blacklist, set:
12# PNBLACKLIST[pn] = "message"
6# 13#
7 14
8python () { 15python () {
9 import bb 16 blacklist = d.getVarFlag('PNBLACKLIST', d.getVar('PN', True), True)
10
11 blacklist = bb.data.getVar("ANGSTROM_BLACKLIST", d, 1)
12 pkgnm = bb.data.getVar("PN", d, 1)
13 distro = bb.data.getVar("DISTRO", d, 1)
14 17
15 if blacklist: 18 if blacklist:
16 bb.note("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist)) 19 raise bb.parse.SkipPackage("Recipe is blacklisted: %s" % (blacklist))
17 raise bb.parse.SkipPackage("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist))
18
19} 20}
20