capsman-download-packages: lock against multiple invocation

This commit is contained in:
Christian Hesse 2019-12-05 09:48:50 +01:00
parent 9548641b60
commit b8db93918f

View file

@ -5,8 +5,11 @@
#
# download and cleanup packages for CAP installation from CAPsMAN
:global DownloadPackage;
:global CleanFilePath;
:global DownloadPackage;
:global ScriptLock;
$ScriptLock "capsman-download-packages";
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
:local InstalledVersion [ / system package update get installed-version ];