Improve messaging for locked dependency path

This commit is contained in:
Anatol Belski
2017-09-15 10:47:22 +02:00
parent 97112e4dd0
commit c7c874e9b4

View File

@@ -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;