summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-03-29 14:22:29 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 16:50:06 +0100
commit3774cf0fdc0d61532f10112b3cf3bc65f4084b53 (patch)
treeb83a0b49faef527da72796fcf611169736557150 /meta/classes/license.bbclass
parent331f7fa3f26322367c6e298efd282267bfdb6501 (diff)
downloadpoky-3774cf0fdc0d61532f10112b3cf3bc65f4084b53.tar.gz
license.bbclass: remove existing license.manifest before appending new data
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 <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass4
1 files changed, 4 insertions, 0 deletions
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() {
79 # Get list of installed packages 79 # Get list of installed packages
80 list_installed_packages | grep -v "locale" |sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest 80 list_installed_packages | grep -v "locale" |sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest
81 INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest` 81 INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest`
82 # remove existing license.manifest file
83 if [ -f ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest ]; then
84 rm ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest
85 fi
82 # list of installed packages is broken for deb 86 # list of installed packages is broken for deb
83 for pkg in ${INSTALLED_PKGS}; do 87 for pkg in ${INSTALLED_PKGS}; do
84 # not the best way to do this but licenses are not arch dependant iirc 88 # not the best way to do this but licenses are not arch dependant iirc