Handle forced updates

This commit is contained in:
Girish Ramakrishnan
2015-07-20 10:09:02 -07:00
parent 1e67241049
commit 17b1f469d7
2 changed files with 10 additions and 4 deletions
+1 -2
View File
@@ -680,8 +680,7 @@ function backupApp(app, addonsToBackup, callback) {
function canBackupApp(app) {
// only backup apps that are installed or pending configure. Rest of them are in some
// state not good for consistent backup
// state not good for consistent backup (i.e addons may not have been setup completely)
return (app.installationState === appdb.ISTATE_INSTALLED && app.health === appdb.HEALTH_HEALTHY)
|| app.installationState === appdb.ISTATE_PENDING_CONFIGURE
|| app.installationState === appdb.ISTATE_PENDING_BACKUP