mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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
This commit is contained in:
@@ -268,9 +268,17 @@ populate_staging_postamble () {
|
|||||||
# list the packages currently installed in staging
|
# list the packages currently installed in staging
|
||||||
# ${PSTAGE_LIST_CMD} | awk '{print $1}' > ${DEPLOY_DIR_PSTAGE}/installed-list
|
# ${PSTAGE_LIST_CMD} | awk '{print $1}' > ${DEPLOY_DIR_PSTAGE}/installed-list
|
||||||
|
|
||||||
|
# exitcode == 5 is ok, it means the files change
|
||||||
set +e
|
set +e
|
||||||
stage-manager -p ${STAGING_DIR} -c ${DEPLOY_DIR_PSTAGE}/stamp-cache-staging -u -d ${PSTAGE_TMPDIR_STAGE}/staging
|
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
|
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
|
set -e
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user