2012-05-09 15:50:59 +00:00
|
|
|
# anonymous support class from originally from angstrom
|
2012-05-09 15:21:35 +00:00
|
|
|
#
|
2012-05-09 15:50:59 +00:00
|
|
|
# To use the blacklist, a distribution should include this
|
|
|
|
# class in the INHERIT_DISTRO
|
|
|
|
#
|
|
|
|
# No longer use ANGSTROM_BLACKLIST, instead use a table of
|
|
|
|
# recipes in PNBLACKLIST
|
|
|
|
#
|
2012-05-09 15:21:35 +00:00
|
|
|
# Features:
|
|
|
|
#
|
2012-05-09 15:50:59 +00:00
|
|
|
# * To add a package to the blacklist, set:
|
|
|
|
# PNBLACKLIST[pn] = "message"
|
2012-05-09 15:21:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
python () {
|
2012-05-09 15:50:59 +00:00
|
|
|
blacklist = d.getVarFlag('PNBLACKLIST', d.getVar('PN', True), True)
|
2012-05-09 15:21:35 +00:00
|
|
|
|
|
|
|
if blacklist:
|
2012-05-09 15:50:59 +00:00
|
|
|
raise bb.parse.SkipPackage("Recipe is blacklisted: %s" % (blacklist))
|
2012-05-09 15:21:35 +00:00
|
|
|
}
|