From patchwork Thu May 19 08:59:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: rootfs_ipk: don't recreate opkg lock dir after removing it if O_P_M is disabled Date: Thu, 19 May 2011 08:59:03 -0000 From: Phil Blundell X-Patchwork-Id: 4493 Message-Id: <1305795543.18415.170.camel@lenovo.internal.reciva.com> To: openembedded-core@lists.openembedded.org Signed-off-by: Phil Blundell --- meta/classes/rootfs_ipk.bbclass | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 5727d15..4c8088b 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass @@ -91,8 +91,16 @@ rootfs_ipk_write_manifest() { remove_packaging_data_files() { rm -rf ${IMAGE_ROOTFS}${opkglibdir} - # We need the directory for the package manager lock - mkdir ${IMAGE_ROOTFS}${opkglibdir} + + case "${ONLINE_PACKAGE_MANAGEMENT}" in + none) + ;; + + *) + # We need the directory for the package manager lock + mkdir ${IMAGE_ROOTFS}${opkglibdir} + ;; + esac } install_all_locales() {