mirror of
https://github.com/php-win-ext/php-sdk-binary-tools.git
synced 2026-03-24 09:02:12 +01:00
Improve messaging for locked dependency path
This commit is contained in:
@@ -51,9 +51,10 @@ class Manager
|
||||
return;
|
||||
}
|
||||
|
||||
$lock = new Lock(Config::getDepsLocalPath(), false);
|
||||
if (!$lock->exclusive()) {
|
||||
$msg .= "Another process is updating same dependency path. I'm just going to wait for it to finish and then exit.";
|
||||
$lock = new Lock(Config::getDepsLocalPath());
|
||||
if (!$lock->locked()) {
|
||||
$msg .= "Dependencies was updated by another process.";
|
||||
echo "Another process is updating same dependency path. I'm just going to wait for it to finish and then exit.", PHP_EOL;
|
||||
$lock->exclusive(true);
|
||||
unset($lock);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user