mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
classes/recipes: Convert SkipPackage -> SkipRecipe
The new name is much more consistent with what this actually means. We put the pieces in place to rename everything a while back but looks like we forgot to actually do it! Fix that now. (From OE-Core rev: af9612f5d6b848fceea22d10ee964437299be776) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -17,7 +17,7 @@ python () {
|
||||
if any_of_distro_features:
|
||||
any_of_distro_features = any_of_distro_features.split()
|
||||
if set.isdisjoint(set(any_of_distro_features),set(distro_features)):
|
||||
raise bb.parse.SkipPackage("one of '%s' needs to be in DISTRO_FEATURES" % any_of_distro_features)
|
||||
raise bb.parse.SkipRecipe("one of '%s' needs to be in DISTRO_FEATURES" % any_of_distro_features)
|
||||
|
||||
required_distro_features = d.getVar('REQUIRED_DISTRO_FEATURES')
|
||||
if required_distro_features:
|
||||
@@ -26,12 +26,12 @@ python () {
|
||||
if f in distro_features:
|
||||
continue
|
||||
else:
|
||||
raise bb.parse.SkipPackage("missing required distro feature '%s' (not in DISTRO_FEATURES)" % f)
|
||||
raise bb.parse.SkipRecipe("missing required distro feature '%s' (not in DISTRO_FEATURES)" % f)
|
||||
|
||||
conflict_distro_features = d.getVar('CONFLICT_DISTRO_FEATURES')
|
||||
if conflict_distro_features:
|
||||
conflict_distro_features = conflict_distro_features.split()
|
||||
for f in conflict_distro_features:
|
||||
if f in distro_features:
|
||||
raise bb.parse.SkipPackage("conflicting distro feature '%s' (in DISTRO_FEATURES)" % f)
|
||||
raise bb.parse.SkipRecipe("conflicting distro feature '%s' (in DISTRO_FEATURES)" % f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user