Skip to content

Commit

Permalink
Do nothing when uninstalling unconfigured packages
Browse files Browse the repository at this point in the history
  • Loading branch information
HeahDude committed Dec 20, 2018
1 parent 4a7cd6d commit 0d87b3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ private function fetchRecipes(): array
if ($operation instanceof InstallOperation && isset($locks[$name])) {
$this->lock->add($name, $locks[$name]);
} elseif ($operation instanceof UninstallOperation) {
if (!$this->lock->has($name)) {
continue;
}
$this->lock->remove($name);
}

Expand Down

0 comments on commit 0d87b3a

Please sign in to comment.