mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-19 00:26:53 +00:00
Fix supervisor using wrong source for deltas
This fixes a specific issue when the supervisor cannot find the right source for deltas (e.g. after the DB gets deleted), where legacy behavior was to look for any image in the app. Change-type: patch Relates-to: #1729
This commit is contained in:
parent
cacbcfd2b1
commit
2fa0d3dc43
@ -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…
x
Reference in New Issue
Block a user