aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-04-03 21:30:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-04-03 21:30:43 +0200
commitb35c0b8a6f6373201cc9e252a8647935ad54ee19 (patch)
tree3a0f435d99f4f6772871ae00077a5554e8170839 /packages-update
parent27b2fffaaf2529759795b031acea9c8e6980a4ac (diff)
always write warnings and errors to log
Diffstat (limited to 'packages-update')
-rw-r--r--packages-update6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages-update b/packages-update
index 683e9f8..10b4a45 100644
--- a/packages-update
+++ b/packages-update
@@ -10,13 +10,15 @@
:local LatestVersion [ / system package update get latest-version ];
:if ($InstalledVersion = $LatestVersion) do={
- :error ("Version " . $LatestVersion . " is already installed.");
+ :log info ("Version " . $LatestVersion . " is already installed.");
+ :error "No updates available.";
}
:foreach Package in=[ / system package find where !bundle ] do={
:local PkgName [ / system package get $Package name ];
if ([ $DownloadPackage $PkgName $LatestVersion ] = false) do={
- :error ("Download for package " . $PkgName . " failed.");
+ :log error ("Download for package " . $PkgName . " failed.");
+ :error "Error: See log for details.";
}
}