Skip to content

Commit

Permalink
bug #462 Do nothing when uninstalling unconfigured packages (HeahDude)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.1-dev branch.

Discussion
----------

Do nothing when uninstalling unconfigured packages

When uninstalling a package with a found recipe, Flex unconfigures it even if it was not configured before.

Commits
-------

0d87b3a Do nothing when uninstalling unconfigured packages
  • Loading branch information
nicolas-grekas committed Dec 20, 2018
2 parents 11ac495 + 0d87b3a commit faca898
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 @@ -594,6 +594,9 @@ private function fetchRecipes(): array
}
$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 faca898

Please sign in to comment.