Patchwork rootfs_ipk: don't recreate opkg lock dir after removing it if O_P_M is disabled

login
register
mail settings
Submitter Phil Blundell
Date May 19, 2011, 8:59 a.m.
Message ID <1305795543.18415.170.camel@lenovo.internal.reciva.com>
Download mbox | patch
Permalink /patch/4493/
State New, archived
Headers show

Comments

Phil Blundell - May 19, 2011, 8:59 a.m.
Signed-off-by: Phil Blundell <philb@gnu.org>
---
 meta/classes/rootfs_ipk.bbclass |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

Patch

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() {