diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-24 10:22:37 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-24 10:22:37 +0200 |
commit | 7fe0938f86a7041e78fae280b28dae852008ef1b (patch) | |
tree | 0957b93411d9612263d00c8509412ad501b1379f /packages-update | |
parent | 3aa4d7ea50dba77605fc1b4f928eaa498bbec3dc (diff) |
packages-update: break if latest version is unknown
Diffstat (limited to 'packages-update')
-rw-r--r-- | packages-update | 5 |
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."; |