global-functions: $DownloadPackage: do not re-download

This commit is contained in:
Christian Hesse 2020-04-07 12:54:46 +02:00
parent 2cd8a56aa7
commit 96598b2d34

View file

@ -229,6 +229,11 @@
}
:local PkgDest [ $CleanFilePath ($PkgDir . "/" . $PkgFile) ];
:if ([ / file print count-only where name=$PkgDest type="package" ] > 0) do={
$LogPrintExit info ("Package file alreasy exists.") false;
:return true;
}
:if ([ $CertificateAvailable "Let's Encrypt Authority X3" ] = false) do={
$LogPrintExit error ("Downloading required certificate failed.") true;
}