packages-update: ignore available packages

This was introduced with RouterOS 7.18beta2 to list and install available
packages. We do not want to install all of them. 😝
This commit is contained in:
Christian Hesse 2025-02-07 17:12:30 +01:00
parent dafd95d44a
commit dbdc3e4718

View file

@ -130,7 +130,7 @@
}
}
:foreach Package in=[ /system/package/find where !bundle ] do={
:foreach Package in=[ /system/package/find where !bundle !available ] do={
:local PkgName [ /system/package/get $Package name ];
:if ([ $DownloadPackage $PkgName ($Update->"latest-version") ] = false) do={
$LogPrint error $ScriptName ("Download for package " . $PkgName . " failed, update aborted.");