From 21a20a6d6cc8f87061d3e4fa557971447fa64adb Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 15 Sep 2006 07:36:48 +0000 Subject: Restructure the subpackage metadata to facilitate use of that metadata by other packages. --- classes/package_ipk.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes/package_ipk.bbclass') 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: -- cgit v1.2.3