I want to run a script to install a .update file, but only if there have been any changes. Is there a way to check before installing that the current update file has not already been installed on the target?
Please see if le_appInfo API (https://docs.legato.io/latest/le__appInfo__interface_8h.html) useful, it can check is the app installed and the state/hash info.
But seems not possible to read the .update file content.
However, during app install, Legato framework does check automatically whether the app is installed, if the same app version is installed, it will discard and not re-install it.
Hope it helps.