[oe-commits] org.oe.dev package_{deb, ipk}.bbclass: change ALLOW_EMPTY check
pH5 commit
openembedded-commits at lists.openembedded.org
Sun Aug 12 10:06:15 UTC 2007
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"
Author: pH5 at openembedded.org
Branch: org.openembedded.dev
Revision: fd98012fea1d4da46fcc95cf50ac457d7c7f1023
ViewMTN: http://monotone.openembedded.org/revision.psp?id=fd98012fea1d4da46fcc95cf50ac457d7c7f1023
Files:
1
classes/package_deb.bbclass
classes/package_ipk.bbclass
Diffs:
#
# mt diff -r9ccdfedb9f1ae369df92ed5a847ac8e04cf7d87b -rfd98012fea1d4da46fcc95cf50ac457d7c7f1023
#
#
#
# patch "classes/package_deb.bbclass"
# from [2d8ea35906dd1ccfce507dbc0f44fdb6ed2335ec]
# to [e921fa8625c039aae270b843336c64fbd0a5dbf2]
#
# patch "classes/package_ipk.bbclass"
# from [f94dda286b2ddbbb067587e2698b5115a7479f86]
# to [115710babe1d2cc095e515f58f4593c548e5b72b]
#
============================================================
--- classes/package_deb.bbclass 2d8ea35906dd1ccfce507dbc0f44fdb6ed2335ec
+++ classes/package_deb.bbclass e921fa8625c039aae270b843336c64fbd0a5dbf2
@@ -130,7 +130,7 @@ python do_package_deb () {
del g[g.index('./DEBIAN')]
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
============================================================
--- classes/package_ipk.bbclass f94dda286b2ddbbb067587e2698b5115a7479f86
+++ classes/package_ipk.bbclass 115710babe1d2cc095e515f58f4593c548e5b72b
@@ -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
More information about the Openembedded-commits
mailing list