[yocto-autobuilder-helper] [PATCH] config.json: Restore auh state
Richard Purdie <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
We were saving the state file (accidentally!) but not restoring it. Also save a date based backup for now which may aid debugging. Signed-off-by: Richard Purdie <[email protected]> --- config.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index fe9d416..7e6b34f 100644 --- a/config.json +++ b/config.json @@ -1585,7 +1585,8 @@ "git -C ../layers/openembedded-core config user.name 'Auto Upgrade Helper'", "git -C ../layers/openembedded-core switch -C tmp-auh-upgrades HEAD", "rm -f ../layers/openembedded-core/.git/hooks/pre-commit", - "install -D ${SCRIPTSDIR}/auh-config/upgrade-helper.conf ./upgrade-helper/upgrade-helper.conf" + "install -D ${SCRIPTSDIR}/auh-config/upgrade-helper.conf ./upgrade-helper/upgrade-helper.conf", + "cp ${WEBPUBLISH_DIR}/pub/auh/auh-state.json ./upgrade-helper" ] }, "step2" : { @@ -1593,7 +1594,8 @@ "EXTRACMDS" : [ "../auto-upgrade-helper/upgrade-helper.py -e all --incremental", "mkdir -p ${WEBPUBLISH_DIR}/pub/auh/", - "cp -rf ./upgrade-helper/* ${WEBPUBLISH_DIR}/pub/auh/" + "cp -rf ./upgrade-helper/* ${WEBPUBLISH_DIR}/pub/auh/", + "cp ${WEBPUBLISH_DIR}/pub/auh/auh-state.json ${WEBPUBLISH_DIR}/pub/auh/auh-state.json.`date +%Y%M%d%H%M`" ] } },