mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
image/packagegroup: Remove PACKAGE_GROUP_*, long since deprecated
This was deprecated in 2014 so we can safely remove the old code now. (From OE-Core rev: fe1b79188cbe8159a0950f0c02d7f476a6694a04) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -5,17 +5,11 @@
|
||||
import itertools
|
||||
|
||||
def is_optional(feature, d):
|
||||
packages = d.getVar("FEATURE_PACKAGES_%s" % feature)
|
||||
if packages:
|
||||
return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional"))
|
||||
else:
|
||||
return bool(d.getVarFlag("PACKAGE_GROUP_%s" % feature, "optional"))
|
||||
return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional"))
|
||||
|
||||
def packages(features, d):
|
||||
for feature in features:
|
||||
packages = d.getVar("FEATURE_PACKAGES_%s" % feature)
|
||||
if not packages:
|
||||
packages = d.getVar("PACKAGE_GROUP_%s" % feature)
|
||||
for pkg in (packages or "").split():
|
||||
yield pkg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user