From 7fe0938f86a7041e78fae280b28dae852008ef1b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 24 Jul 2019 10:22:37 +0200 Subject: packages-update: break if latest version is unknown --- packages-update | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages-update') 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."; -- cgit v1.2.3-70-g09d2