diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-12-01 12:26:00 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-06 12:30:33 +0000 |
commit | a17bf5d840b5777918f324d26e085498dec86b76 (patch) | |
tree | ec6da662487b2a97b7d17c9818b110070b245208 | |
parent | f9ddae16ef31b2c1cd988e1b416a39d516c986c4 (diff) | |
download | openembedded-core-a17bf5d840b5777918f324d26e085498dec86b76.tar.gz openembedded-core-a17bf5d840b5777918f324d26e085498dec86b76.tar.bz2 openembedded-core-a17bf5d840b5777918f324d26e085498dec86b76.zip |
license.bbclass: Avoid grep error message
Touch a file that is later greped to make sure it exists.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/classes/license.bbclass | 3 |
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}" 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` |