@@ -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`"
]
}
},
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 <richard.purdie@linuxfoundation.org> --- config.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)