Fix app backup before updates

we were passing the current manifest to the backup code which meant that
the app version and manifest was incorrect.
This commit is contained in:
Girish Ramakrishnan
2016-06-13 21:17:51 -07:00
parent 5f3378878e
commit 3197349058
2 changed files with 22 additions and 18 deletions
+2 -2
View File
@@ -439,7 +439,7 @@ function backup(app, callback) {
async.series([
updateApp.bind(null, app, { installationProgress: '10, Backing up' }),
backups.backupApp.bind(null, app, app.manifest.addons),
backups.backupApp.bind(null, app, app.manifest),
// done!
function (callback) {
@@ -638,7 +638,7 @@ function update(app, callback) {
async.series([
updateApp.bind(null, app, { installationProgress: '30, Backup app' }),
backups.backupApp.bind(null, app, app.oldConfig.manifest.addons)
backups.backupApp.bind(null, app, app.oldConfig.manifest)
], next);
},