mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 21:57:54 +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,10 +596,13 @@ export function bestDeltaSource(
|
||||
return availableImage.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const availableImage of available) {
|
||||
if (availableImage.appId === image.appId) {
|
||||
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