]> code.ossystems Code Review - openembedded-core.git/commitdiff
license.bbclass: Avoid grep error message
authorMark Hatle <mark.hatle@windriver.com>
Sat, 1 Dec 2012 18:26:00 +0000 (12:26 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Feb 2013 15:17:16 +0000 (15:17 +0000)
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>
meta/classes/license.bbclass

index ec9aa8f4ef61762f42c3daf2eaecc36c2d679720..64da8b07f7af71120a129bcec0916e58f0146cd5 100644 (file)
@@ -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`