summaryrefslogtreecommitdiff
path: root/classes/package_ipk.bbclass
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2006-09-15 07:36:48 +0000
committerChris Larson <clarson@kergoth.com>2006-09-15 07:36:48 +0000
commit21a20a6d6cc8f87061d3e4fa557971447fa64adb (patch)
tree13e6bf9a01154142e831569fc376fe0f3a2cdf44 /classes/package_ipk.bbclass
parentf92e66fc0136a25aba29998d2515d18c97ee8a8c (diff)
Restructure the subpackage metadata to facilitate use of that metadata by other packages.
Diffstat (limited to 'classes/package_ipk.bbclass')
-rw-r--r--classes/package_ipk.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass
index 9ae526bb3b..0cb5128e17 100644
--- a/classes/package_ipk.bbclass
+++ b/classes/package_ipk.bbclass
@@ -129,6 +129,7 @@ python do_package_ipk () {
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
+
controldir = os.path.join(root, 'CONTROL')
bb.mkdirhier(controldir)
try:
@@ -220,6 +221,8 @@ python do_package_ipk () {
if ret != 0:
raise bb.build.FuncFailed("ipkg-build execution failed")
+ file(bb.data.expand('${STAGING_DIR}/pkgdata/runtime/%s.packaged' % pkg, d), 'w').close()
+
for script in ["preinst", "postinst", "prerm", "postrm", "control" ]:
scriptfile = os.path.join(controldir, script)
try: