[OE-core] [PATCH] rootfs_ipk: don't recreate opkg lock dir after removing it if O_P_M is disabled

Phil Blundell pb at pbcl.net
Thu May 19 08:59:03 UTC 2011


Signed-off-by: Phil Blundell <philb at gnu.org>
---
 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() {
-- 
1.7.2.3







More information about the Openembedded-core mailing list