Commit 7fe0938f authored by Christian Hesse's avatar Christian Hesse

packages-update: break if latest version is unknown

parent 3aa4d7ea
......@@ -8,6 +8,11 @@
:local Update [ / system package update get ];
:if ([ :typeof ($Update->"latest-version") ] = "nothing") do={
:log warning "Latest version is not known.";
:error "Latest version is not known.";
}
:if ($Update->"installed-version" = $Update->"latest-version") do={
:log info ("Version " . $Update->"latest-version" . " is already installed.");
:error "No updates available.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment