This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 01 Apr, 2017 2 commits
    • Duncan Coutts's avatar
      New module for store handling, with concurrent updates · b05b9ae7
      Duncan Coutts authored
      A new module with utilities for managing the store. This includes a new
      approach for store updates that allows for concurrent updates to the
      store from different processes.
      
      This relies on the new file locking code. We log a message if we wait
      for a store file lock. This should be a rare occurrence in practice,
      but would help debugging if some other zombie process was holding the
      file lock.
      b05b9ae7
    • Duncan Coutts's avatar
      Create package DBs in building phase not planning phase · 83a42061
      Duncan Coutts authored
      Adjust things so that instead of creating the store package db during
      planning, we instead create them at the beginning of the building phase
      along with the other package dbs we create at that point. That is,
      create it in a write operation rather than in what is morally a read
      operation.
      
      Originally we had to do it in the planning phase because we used to read
      the compiler package db to see what was installed, whereas now we just
      use the store dir listing.
      
      In fact we were already creating some package dbs during the building
      phase, just not all of them, so this cleans things up in that respect.
      83a42061
  2. 24 Mar, 2017 5 commits
  3. 22 Mar, 2017 1 commit
    • Duncan Coutts's avatar
      Simplify HcPkg.register interface · f3c43333
      Duncan Coutts authored
      Remove the variants reregister and registerMultiInstance and generalise
      the main register variant to cover them all. Introduce a RegisterOptions
      record for the variations.
      
      Eliminate an unused form where we supply a file rather than an
      InstalledPackageInfo value.
      
      The motivation is so we can more easily add yet more variations shortly.
      
      This is an API change.
      f3c43333
  4. 21 Mar, 2017 3 commits
  5. 20 Mar, 2017 3 commits
  6. 17 Mar, 2017 16 commits
  7. 16 Mar, 2017 1 commit
  8. 15 Mar, 2017 1 commit
    • kristenk's avatar
      Use a more common type of conflict in the solver basic memory usage test. · ada7f93f
      kristenk authored
      The test previously caused the solver to backtrack because of a missing package.
      Missing packages are handled as a special case in the solver, so the test didn't
      exercise as much code as it could have.  This commit causes the solver to
      backtrack with a version conflict, which is a more common type of failure.
      Other tests continue to test the missing package case.
      ada7f93f
  9. 13 Mar, 2017 2 commits
  10. 12 Mar, 2017 3 commits
  11. 11 Mar, 2017 2 commits
  12. 10 Mar, 2017 1 commit