summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2014-07-21 05:50:19 -0700
committerEdward Z. Yang <ezyang@cs.stanford.edu>2014-07-21 05:54:50 -0700
commitd7c807f7975c13444e1ce79e4c36dd802321cf40 (patch)
treec85f47a4b74d7d36d344042927c5cc23441702ed /packages
parentbb06e2a8ae38f0fcfbd2cdfa1f42dfa1e252c939 (diff)
downloadhaskell-d7c807f7975c13444e1ce79e4c36dd802321cf40.tar.gz
[ghc-pkg] Fix #5442 by using the flag db stack to modify packages.
Summary: Previously, the full database stack was used for ghc-pkg to modify packages, which meant that commands like 'ghc-pkg unregister --user' worked the same as 'ghc-pkg unregister'. Since package modification is a "read and write" operation, we should use the flag db stack (which is currently used for reads) to determine which database to update. There is also a new flag --user-package-db, which lets you explicitly set the user database (as seen by --user). This was mostly added to aid in testing, but could be useful for end users as well. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonmar, hvr, austin Subscribers: simonmar, relrod, carter Differential Revision: https://phabricator.haskell.org/D84
Diffstat (limited to 'packages')
0 files changed, 0 insertions, 0 deletions