From: Mark Hatle Date: Sat, 1 Dec 2012 18:26:00 +0000 (-0600) Subject: license.bbclass: Avoid grep error message X-Git-Tag: rev_ivi_2015_02_04~14690 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=447f3c0ad4903698d6989ad3810d4195ad9370e7;p=scm%2Fbb%2Ftizen-distro.git license.bbclass: Avoid grep error message Touch a file that is later greped to make sure it exists. (From OE-Core rev: a17bf5d840b5777918f324d26e085498dec86b76) Signed-off-by: Mark Hatle Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index c7ca4a6..66cde1c 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -13,7 +13,7 @@ do_populate_lic[cleandirs] = "${LICSSTATEDIR}" license_create_manifest() { mkdir -p ${LICENSE_DIRECTORY}/${IMAGE_NAME} # Get list of installed packages - list_installed_packages | grep -v "locale" |sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest + list_installed_packages | grep -v "locale" | sort > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest` LICENSE_MANIFEST="${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest" # remove existing license.manifest file @@ -21,6 +21,7 @@ license_create_manifest() { rm ${LICENSE_MANIFEST} fi # list of installed packages is broken for deb + touch ${LICENSE_MANIFEST} for pkg in ${INSTALLED_PKGS}; do # not the best way to do this but licenses are not arch dependant iirc filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/${pkg}| head -1`