aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-24 10:22:37 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-24 10:22:37 +0200
commit7fe0938f86a7041e78fae280b28dae852008ef1b (patch)
tree0957b93411d9612263d00c8509412ad501b1379f
parent3aa4d7ea50dba77605fc1b4f928eaa498bbec3dc (diff)
packages-update: break if latest version is unknown
-rw-r--r--packages-update5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages-update b/packages-update
index 738ba2a..7d161c2 100644
--- a/packages-update
+++ b/packages-update
@@ -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.";