]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk.bbclass: ensure the package manager can create lock files
authorJoshua Lock <josh@linux.intel.com>
Thu, 10 Jun 2010 13:49:50 +0000 (14:49 +0100)
committerJoshua Lock <josh@linux.intel.com>
Thu, 10 Jun 2010 13:49:50 +0000 (14:49 +0100)
The opkg package manager uses /usr/lib/opkg to store lock files in, modify the
remove_package_data_files() function to create an empty directory once the data
files are removed so that the lock can be created.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/rootfs_ipk.bbclass

index ea1d6ba4327580ca11aec1e22ba00be163c08b58..fa0764baf7c2d2f4820443378f462a27d5cead27 100644 (file)
@@ -116,6 +116,8 @@ rootfs_ipk_write_manifest() {
 
 remove_packaging_data_files() {
        rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/
+        # We need the directory for the package manager lock
+        mkdir ${IMAGE_ROOTFS}/usr/lib/opkg
 }
 
 install_all_locales() {