rootfs_ipk.bbclass: Don't duplicate remove_packaging_data_files code
authorAndrei Gherzan <andrei@gherzan.ro>
Sun, 21 Oct 2012 15:40:42 +0000 (18:40 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Oct 2012 11:28:33 +0000 (12:28 +0100)
While removing packaging data files in rootfs_ipk_do_rootfs use the
remove_packaging_data_files function. By using this function we ensure
that /var/lib/opkg directory is created. opkg needs this directory to
create lock files.

(From OE-Core rev: 1f3300766b827ed73daaa01572017775305105b2)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_ipk.bbclass

index 9d716fb..25f15ee 100644 (file)
@@ -111,7 +111,7 @@ fakeroot rootfs_ipk_do_rootfs () {
                        fi
 
                        # Also delete the status files
-                       rm -rf ${IMAGE_ROOTFS}${opkglibdir}
+                       remove_packaging_data_files
                fi
        fi
        set +x