os download: Prevent image cache from closing the stream early

Update balena-image-manager from 7.0.3 to 7.0.4

Currently the os download function will create two file streams,
one to write to the provided path, and one to write to the local image cache.

This change prevents the target stream from closing early if the image
cache completes first.

Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding
2021-10-26 13:26:12 -04:00
parent f635f648da
commit c3774b790e
2 changed files with 4 additions and 4 deletions

6
npm-shrinkwrap.json generated
View File

@ -3785,9 +3785,9 @@
} }
}, },
"balena-image-manager": { "balena-image-manager": {
"version": "7.0.3", "version": "7.0.4",
"resolved": "https://registry.npmjs.org/balena-image-manager/-/balena-image-manager-7.0.3.tgz", "resolved": "https://registry.npmjs.org/balena-image-manager/-/balena-image-manager-7.0.4.tgz",
"integrity": "sha512-KLb/5JksYxCR7JClq+MAuCMYPNMAXB9MgqubUvzj4mI/Yec3XD4xZ2BMITwINrl4sMKui/G7t/R5tBNFZsFe9w==", "integrity": "sha512-R6BJGpFmS5SwejbJk0ZYNud+/Y/T+D2ebnLm5BD9eslWAxdonNUSEojuQGC5tapkMUSBvdnfVV1ysnzDaiY4Bg==",
"requires": { "requires": {
"balena-sdk": "^15.2.1", "balena-sdk": "^15.2.1",
"mime": "^2.4.6", "mime": "^2.4.6",

View File

@ -205,7 +205,7 @@
"balena-device-init": "^6.0.0", "balena-device-init": "^6.0.0",
"balena-errors": "^4.7.1", "balena-errors": "^4.7.1",
"balena-image-fs": "^7.0.6", "balena-image-fs": "^7.0.6",
"balena-image-manager": "^7.0.3", "balena-image-manager": "^7.0.4",
"balena-preload": "^11.0.0", "balena-preload": "^11.0.0",
"balena-release": "^3.2.0", "balena-release": "^3.2.0",
"balena-sdk": "^15.51.1", "balena-sdk": "^15.51.1",