summaryrefslogtreecommitdiffstats
path: root/yocto-poky/meta/lib/oe/packagegroup.py
diff options
context:
space:
mode:
Diffstat (limited to 'yocto-poky/meta/lib/oe/packagegroup.py')
-rw-r--r--yocto-poky/meta/lib/oe/packagegroup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yocto-poky/meta/lib/oe/packagegroup.py b/yocto-poky/meta/lib/oe/packagegroup.py
index 12eb4212f..a6fee5f95 100644
--- a/yocto-poky/meta/lib/oe/packagegroup.py
+++ b/yocto-poky/meta/lib/oe/packagegroup.py
@@ -3,9 +3,9 @@ import itertools
def is_optional(feature, d):
packages = d.getVar("FEATURE_PACKAGES_%s" % feature, True)
if packages:
- return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional"))
+ return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional", True))
else:
- return bool(d.getVarFlag("PACKAGE_GROUP_%s" % feature, "optional"))
+ return bool(d.getVarFlag("PACKAGE_GROUP_%s" % feature, "optional", True))
def packages(features, d):
for feature in features:
OpenPOWER on IntegriCloud