summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-28 15:11:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-29 15:02:19 +0100
commita98d9c5b7141d3d22cd324ecd4c5127aa78f2ab5 (patch)
treedb49ee50ac48f5da14259257574c4f05fdf6470b /meta/lib/oe
parent2aa51e2e3146a0719e384b5c7af29774cd64d5ff (diff)
downloadpoky-a98d9c5b7141d3d22cd324ecd4c5127aa78f2ab5.tar.gz
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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/packagegroup.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/lib/oe/packagegroup.py b/meta/lib/oe/packagegroup.py
index 2419cbb6d3..8fcaecde82 100644
--- a/meta/lib/oe/packagegroup.py
+++ b/meta/lib/oe/packagegroup.py
@@ -5,17 +5,11 @@
5import itertools 5import itertools
6 6
7def is_optional(feature, d): 7def is_optional(feature, d):
8 packages = d.getVar("FEATURE_PACKAGES_%s" % feature) 8 return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional"))
9 if packages:
10 return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional"))
11 else:
12 return bool(d.getVarFlag("PACKAGE_GROUP_%s" % feature, "optional"))
13 9
14def packages(features, d): 10def packages(features, d):
15 for feature in features: 11 for feature in features:
16 packages = d.getVar("FEATURE_PACKAGES_%s" % feature) 12 packages = d.getVar("FEATURE_PACKAGES_%s" % feature)
17 if not packages:
18 packages = d.getVar("PACKAGE_GROUP_%s" % feature)
19 for pkg in (packages or "").split(): 13 for pkg in (packages or "").split():
20 yield pkg 14 yield pkg
21 15