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

Submitted by Phil Blundell on May 19, 2011, 8:59 a.m.

Details

Message ID 1305795543.18415.170.camel@lenovo.internal.reciva.com
State New, archived
Headers show

Commit Message

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 hide | download patch | download mbox

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