global-functions: $ScriptInstallUpdate: checksum only for same source

So ignore if script is fetched from different base or with different
suffix.
This commit is contained in:
Christian Hesse 2025-03-05 08:55:06 +01:00
parent b13360e4b8
commit 1b46a5fd9b

View file

@ -1178,7 +1178,8 @@
}
:local CheckSum ($CheckSums->($ScriptVal->"name"));
:if ([ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = $CheckSum) do={
:if ([ :len ($ScriptInfo->"base-url") ] = 0 && [ :len ($ScriptInfo->"url-suffix") ] = 0 && \
[ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = $CheckSum) do={
$LogPrint debug $0 ("Checksum for script '" . $ScriptVal->"name" . "' matches, ignoring.");
:error true;
}