summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/license.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index c7ca4a636e..66cde1c03e 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -13,7 +13,7 @@ do_populate_lic[cleandirs] = "${LICSSTATEDIR}"
13license_create_manifest() { 13license_create_manifest() {
14 mkdir -p ${LICENSE_DIRECTORY}/${IMAGE_NAME} 14 mkdir -p ${LICENSE_DIRECTORY}/${IMAGE_NAME}
15 # Get list of installed packages 15 # Get list of installed packages
16 list_installed_packages | grep -v "locale" |sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest 16 list_installed_packages | grep -v "locale" | sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest
17 INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest` 17 INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest`
18 LICENSE_MANIFEST="${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest" 18 LICENSE_MANIFEST="${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest"
19 # remove existing license.manifest file 19 # remove existing license.manifest file
@@ -21,6 +21,7 @@ license_create_manifest() {
21 rm ${LICENSE_MANIFEST} 21 rm ${LICENSE_MANIFEST}
22 fi 22 fi
23 # list of installed packages is broken for deb 23 # list of installed packages is broken for deb
24 touch ${LICENSE_MANIFEST}
24 for pkg in ${INSTALLED_PKGS}; do 25 for pkg in ${INSTALLED_PKGS}; do
25 # not the best way to do this but licenses are not arch dependant iirc 26 # not the best way to do this but licenses are not arch dependant iirc
26 filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/${pkg}| head -1` 27 filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/${pkg}| head -1`