From 36f9208ab9b44b30edd8b9981f21a376091aaffc Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Sun, 12 Aug 2007 09:36:50 +0000 Subject: package_{deb,ipk}.bbclass: change ALLOW_EMPTY check - before an unset ALLOW_EMPTY meant False, while any string value meant True, now "1" means True and any other value or unset means False - this allows to set ALLOW_EMPTY = "1" and explicitly unset it for a subpackage with ALLOW_EMPTY_somepackage = "0" --- classes/package_ipk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/package_ipk.bbclass') diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass index b5cc6af3bb..9200055495 100644 --- a/classes/package_ipk.bbclass +++ b/classes/package_ipk.bbclass @@ -131,7 +131,7 @@ python do_package_ipk () { del g[g.index('./CONTROL')] except ValueError: pass - if not g and not bb.data.getVar('ALLOW_EMPTY', localdata): + if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": from bb import note note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) continue -- cgit 1.2.3-korg