mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
Merge pull request #1730 from balena-os/wrong-delta-source
Fix supervisor using wrong source for deltas
This commit is contained in:
commit
168f5df2dd
@ -596,12 +596,15 @@ export function bestDeltaSource(
|
||||
return availableImage.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// This only makes sense for dependent devices which are still
|
||||
// single app.
|
||||
for (const availableImage of available) {
|
||||
if (availableImage.appId === image.appId) {
|
||||
return availableImage.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user