summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-16 07:18:42 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-16 07:18:42 +0000
commit4c664f698ca1fe0d0e04f581d01d024757fdad8a (patch)
tree3df2e52036c1001ee4ce5b70428f3640f522715f /meta/classes
parent1cde6638f5be53edbf8e7eebc921f0f55d222e10 (diff)
downloadopenembedded-core-4c664f698ca1fe0d0e04f581d01d024757fdad8a.tar.gz
openembedded-core-4c664f698ca1fe0d0e04f581d01d024757fdad8a.tar.bz2
openembedded-core-4c664f698ca1fe0d0e04f581d01d024757fdad8a.zip
packaged-staging.bbclass: Improve postamble exit code handling
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4484 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/packaged-staging.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass
index 41b348d1b3..5cee0621a5 100644
--- a/meta/classes/packaged-staging.bbclass
+++ b/meta/classes/packaged-staging.bbclass
@@ -268,9 +268,17 @@ populate_staging_postamble () {
# list the packages currently installed in staging
# ${PSTAGE_LIST_CMD} | awk '{print $1}' > ${DEPLOY_DIR_PSTAGE}/installed-list
+ # exitcode == 5 is ok, it means the files change
set +e
stage-manager -p ${STAGING_DIR} -c ${DEPLOY_DIR_PSTAGE}/stamp-cache-staging -u -d ${PSTAGE_TMPDIR_STAGE}/staging
+ exitcode=$?
+ if [ "$exitcode" != "5" -a "$exitcode" != "0" ]; then
+ exit $exitcode
+ fi
stage-manager -p ${CROSS_DIR} -c ${DEPLOY_DIR_PSTAGE}/stamp-cache-cross -u -d ${PSTAGE_TMPDIR_STAGE}/cross
+ if [ "$exitcode" != "5" -a "$exitcode" != "0" ]; then
+ exit $exitcode
+ fi
set -e
fi
}