mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 16:35:23 +00:00
The apps to update are the ones that aren't equal!
This commit is contained in:
parent
1b74e0cca5
commit
b4756db23b
@ -140,7 +140,7 @@ exports.update = ->
|
|||||||
console.log("Apps to be updated")
|
console.log("Apps to be updated")
|
||||||
toBeUpdated = _.intersection(remoteImages, localImages)
|
toBeUpdated = _.intersection(remoteImages, localImages)
|
||||||
toBeUpdated = _.filter toBeUpdated, (imageId) ->
|
toBeUpdated = _.filter toBeUpdated, (imageId) ->
|
||||||
return _.isEqual(remoteApps[imageId], apps[imageId])
|
return !_.isEqual(remoteApps[imageId], apps[imageId])
|
||||||
console.log(toBeUpdated)
|
console.log(toBeUpdated)
|
||||||
|
|
||||||
# Install the apps and add each to the db as they succeed
|
# Install the apps and add each to the db as they succeed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user