From 3774cf0fdc0d61532f10112b3cf3bc65f4084b53 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Thu, 29 Mar 2012 14:22:29 +0200 Subject: license.bbclass: remove existing license.manifest before appending new data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit without this fix, we append license each time we build again the same image, ending with a large not up to date file. (From OE-Core rev: 2d49a8f659694b60cdb706e8993cd9550e2002bd) Signed-off-by: Eric Bénard Signed-off-by: Richard Purdie --- meta/classes/license.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes') diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 394a6d4480..c85233c7a6 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -79,6 +79,10 @@ license_create_manifest() { # Get list of installed packages list_installed_packages | grep -v "locale" |sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest` + # remove existing license.manifest file + if [ -f ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest ]; then + rm ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest + fi # list of installed packages is broken for deb for pkg in ${INSTALLED_PKGS}; do # not the best way to do this but licenses are not arch dependant iirc -- cgit v1.2.3-54-g00ecf