aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-01-17 20:15:24 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-01-17 20:57:19 +0100
commit25338ca384ddd41c4b9d3ad2a937228562043235 (patch)
treef86074b732b5cf88108f19f7521aa5fe1554488d
parentee9818e34dbdfeba3104857a54c8ec1bc6aba4ce (diff)
global-functions: $DownloadPackage: give url in debug output
(cherry picked from commit 51cd11c80380eac0bfde4649cb30747c198881b7)
-rw-r--r--global-functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions b/global-functions
index 9579f5c..40cd271 100644
--- a/global-functions
+++ b/global-functions
@@ -278,13 +278,13 @@
$LogPrintExit2 error $0 ("Downloading required certificate failed.") true;
}
+ :local Url ("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile);
$LogPrintExit2 info $0 ("Downloading package file '" . $PkgName . "'...") false;
+ $LogPrintExit2 debug $0 ("... from url: " . $Url) false;
:local Retry 3;
:while ($Retry > 0) do={
:do {
- / tool fetch check-certificate=yes-without-crl \
- ("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile) \
- dst-path=$PkgDest;
+ / tool fetch check-certificate=yes-without-crl $Url dst-path=$PkgDest;
$WaitForFile $PkgDest;
:if ([ / file get [ find where name=$PkgDest ] type ] = "package") do={