Make the repair re-issue the install command

Otherwise, repairing a repair has to be handled
This commit is contained in:
Girish Ramakrishnan
2019-09-23 13:21:25 -07:00
parent 93344a5a4a
commit 38a0cdc0be
3 changed files with 12 additions and 36 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ function setTask(appId, values, callback) {
assert.strictEqual(typeof values, 'object');
assert.strictEqual(typeof callback, 'function');
if (values.installationState === 'pending_repair' || values.installationState === 'pending_uninstall') { // FIXME
if (values.installationState === 'pending_uninstall') { // FIXME
updateWithConstraints(appId, values, 'AND taskId IS NULL AND installationState = "error"', callback);
} else {
updateWithConstraints(appId, values, 'AND taskId IS NULL AND installationState != "error"', callback);