]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk: remove runtime_script_required usage
authorMartin Jansa <martin.jansa@gmail.com>
Wed, 25 Jan 2012 08:05:15 +0000 (09:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Feb 2012 14:58:45 +0000 (14:58 +0000)
* it was introduced in 87780fc09b066525e47d0f50ee5497db54d304cd
* then partially removed in 2feba313c991170747381c7cf821a45c2cd04632
* so remove this use too as runtime_script_required is not initialized anymore and results in
  run.do_rootfs.6328: line 235: [: -eq: unary operator expected

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
meta/classes/rootfs_ipk.bbclass

index 48fb2fbd1889999e44c44750458cfa1a4cb78eef..5342035241b8f8856dc5d5f1eb78ce0a72a5e95c 100644 (file)
@@ -90,7 +90,7 @@ fakeroot rootfs_ipk_do_rootfs () {
        rm -f ${IMAGE_ROOTFS}${opkglibdir}/lists/*
 
        if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)}; then
-               if [ $runtime_script_required -eq 0 ]; then
+               if ! grep Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
                        # All packages were successfully configured.
                        # update-rc.d, base-passwd are no further use, remove them now
                        opkg-cl ${IPKG_ARGS} --force-depends remove update-rc.d base-passwd || true