]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk.bbclass: Add context to reported errors
authorRichard Purdie <richard@openedhand.com>
Wed, 26 Jul 2006 21:28:32 +0000 (21:28 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 26 Jul 2006 21:28:32 +0000 (21:28 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@557 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/rootfs_ipk.bbclass

index 8dfba10b5eb10a8db948d6795614fd24162a9c7c..8f9fddde1455f8ea9bc368ad7327c4e41c0def64 100644 (file)
@@ -31,6 +31,7 @@ real_do_rootfs () {
        mkdir -p ${IMAGE_ROOTFS}/dev
 
        if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then
+               touch ${DEPLOY_DIR_IPK}/Packages
                ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK}
        fi
        mkdir -p ${T}
@@ -95,7 +96,7 @@ log_check() {
                                then
                                        echo "log_check: There were error messages in the logfile"
                                        echo -e "log_check: Matched keyword: [$keyword_die]\n"
-                                       echo "$lf_txt" | grep -v log_check | grep -i "$keyword_die"
+                                       echo "$lf_txt" | grep -v log_check | grep -C 5 -i "$keyword_die"
                                        echo ""
                                        do_exit=1                               
                                fi