mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-08-31 10:06:05 +00:00
fix: Allow images with same sha512 when modelId differs (#1223)
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ export function hasManufacturerImage(list: RepoImageMeta[], image: RepoImageMeta
|
||||
return list.some(
|
||||
(i) =>
|
||||
path.posix.dirname(i.url) === imageBasePath &&
|
||||
(i.sha512 === image.sha512 ||
|
||||
((i.sha512 === image.sha512 && !(i.modelId && image.modelId && i.modelId !== image.modelId)) ||
|
||||
(i.fileVersion === image.fileVersion &&
|
||||
i.imageType === image.imageType &&
|
||||
i.manufacturerCode === image.manufacturerCode &&
|
||||
|
||||
Reference in New Issue
Block a user