Patchwork [V2,4/5] rootfs_ipk.bbclass: Don't duplicate remove_packaging_data_files code

login
register
mail settings
Submitter Andrei Gherzan
Date Oct. 21, 2012, 3:40 p.m.
Message ID <cb8eaacdb9930ae1c0a362f2925572266729ec91.1350833713.git.andrei@gherzan.ro>
Download mbox | patch
Permalink /patch/38369/
State Accepted
Commit e7f1ec945bacb189446b0dc79272cabe24dd79e0
Headers show

Comments

Andrei Gherzan - Oct. 21, 2012, 3:40 p.m.
While removing packaging data files in rootfs_ipk_do_rootfs use the
remove_packaging_data_files function. By using this function we ensure
that /var/lib/opkg directory is created. opkg needs this directory to
create lock files.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/classes/rootfs_ipk.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 9d716fb..25f15ee 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -111,7 +111,7 @@  fakeroot rootfs_ipk_do_rootfs () {
 			fi
 
 			# Also delete the status files
-			rm -rf ${IMAGE_ROOTFS}${opkglibdir}
+			remove_packaging_data_files
 		fi
 	fi
 	set +x