global-functions: $DownloadPackage: use $RmFile

This commit is contained in:
Christian Hesse 2025-01-21 18:35:39 +01:00
parent dbdf295244
commit ea8ec6b580

View file

@ -343,6 +343,7 @@
:global CleanFilePath; :global CleanFilePath;
:global LogPrint; :global LogPrint;
:global MkDir; :global MkDir;
:global RmFile;
:global WaitForFile; :global WaitForFile;
:if ([ :len $PkgName ] = 0) do={ :return false; } :if ([ :len $PkgName ] = 0) do={ :return false; }
@ -386,7 +387,7 @@
$LogPrint debug $0 ("Downloading package file failed."); $LogPrint debug $0 ("Downloading package file failed.");
} }
/file/remove [ find where name=$PkgDest ]; $RmFile $PkgDest;
:set Retry ($Retry - 1); :set Retry ($Retry - 1);
} }