This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 06 Dec, 2013 1 commit
  2. 05 Dec, 2013 3 commits
    • Mikhail Glushenkov's avatar
      Whitespace, formatting. · 270e771d
      Mikhail Glushenkov authored
      270e771d
    • Mikhail Glushenkov's avatar
    • Mikhail Glushenkov's avatar
      Solver support for '--allow-newer'. · d5ea0dfc
      Mikhail Glushenkov authored
      Implemented by going through all packages in the 'depResolverSourcePkgIndex' and
      applying 'relaxUpperBound' to the dependencies listed in 'build-depends'.
      
      Known issue:
      'build-depends: a < 3 && >= 2; if (someFlag): build-depends: a >= 5 && < 6'
      gets converted to
      'build-depends: >= 2; if (someFlag): build-depends: a >= 5'
      (4 is now allowed where it previously wasn't).
      
      Example:
      
          $ cabal install --dry-run ./tst
          Resolving dependencies...
          In order, the following would be installed (use -v for more details):
          array-0.3.0.3 (latest: 0.5.0.0)
          tst-0.1.0.0 (latest: 0.1.1)
      
          $ cabal install --dry-run --allow-newer=array ./tst
          Resolving dependencies...
          In order, the following would be installed (use -v for more details):
          tst-0.1.0.0 (latest: 0.1.1)
      d5ea0dfc
  3. 04 Dec, 2013 1 commit
    • Mikhail Glushenkov's avatar
      Refactoring: change the return type of 'InstallPlan.ready'. · 2a75a448
      Mikhail Glushenkov authored
      Introduce a new type 'ReadyPackage' to represent packages that have all
      dependencies already installed. Make 'InstallPlan.ready' return '[ReadyPackage]'
      instead of '[(ConfiguredPackage, InstalledPackageInfo)]'.
      
      Also fix a bug where 'cabal configure' didn't pass '--dependency' options to
      'setup configure'.
      2a75a448
  4. 02 Dec, 2013 1 commit
  5. 22 Nov, 2013 1 commit
  6. 31 Oct, 2013 4 commits
  7. 29 Oct, 2013 1 commit
  8. 26 Oct, 2013 3 commits
  9. 25 Oct, 2013 3 commits
  10. 24 Oct, 2013 1 commit
    • Duncan Coutts's avatar
      Only report not using latest versions when using < latest · 0f00536c
      Duncan Coutts authored
      Rather than when /= latest. So we'll no longer report things like:
      
        hdevtools-0.1.0.6 (latest: 0.1.0.5) (new package)
      
      We don't need to tell people they're not using the latest version when
      they're actually using a later version than the one available (e.g.
      it's installed locally and not available from the remote server).
      
      Reported by bennofs
      0f00536c
  11. 12 Oct, 2013 1 commit
  12. 07 Oct, 2013 1 commit
  13. 10 Sep, 2013 1 commit
  14. 31 Aug, 2013 2 commits
  15. 23 Aug, 2013 2 commits
  16. 24 Jul, 2013 1 commit
  17. 20 Jul, 2013 1 commit
  18. 18 Jul, 2013 1 commit
  19. 17 Jul, 2013 1 commit
  20. 27 Jun, 2013 1 commit
    • Ben Millwood's avatar
      Slim down exception compatibility modules · 80a2226a
      Ben Millwood authored
      handleIO and throwIOIO in the cabal-install compat module were
      completely unused, so they're just binned.
      
      IOException, SomeException and onException are now just used from
      Control.Exception, since these days it's available on all supported
      build configurations.
      
      There are some more functions which can be removed, but these are the
      easiest and least invasive.
      80a2226a
  21. 05 Jun, 2013 1 commit
  22. 29 May, 2013 2 commits
  23. 17 May, 2013 2 commits
    • Mikhail Glushenkov's avatar
      Make newly-added add-source deps override previously installed versions. · e8742a5c
      Mikhail Glushenkov authored
      Fixes #1197.
      
      This patch is a bit large because it includes several related changes:
      
      1) Remove 'installUseSandbox' from 'InstallFlags' and pass 'useSandbox' as an
      additional argument instead.
      
      2) Instead of calling 'reinstallAddSourceDeps' from 'installAction', always pass
      'SandboxPackageInfo' to 'install'.
      
      3) Set the timestamps of newly-added add-source deps to 0 in the timestamp file.
      
      4) Move the timestamp file update to 'postInstallActions' from
      'withModifiedDeps'. This way, the timestamps are updated even when the user runs
      'install --only-dependencies' or 'install some-add-source-dep-package-id'.
      e8742a5c
    • Mikhail Glushenkov's avatar
      Apply 'sandboxInstallPolicy' after 'reinstallTargets'. · 35b6bda9
      Mikhail Glushenkov authored
      Otherwise 'install --reinstall' in a sandbox reinstall the contents of the whole
      sandbox.
      35b6bda9
  24. 16 May, 2013 1 commit
    • Mikhail Glushenkov's avatar
      Instead of pruning, make an install plan for the whole environment. · 99dc4056
      Mikhail Glushenkov authored
      Previously, we used a hack for reinstalling reverse dependencies: we created an
      install plan for the sandboxed package and the modified add-source deps and then
      pruned the sandboxed package from it. This missed those revdeps that the
      sandboxed package didn't depend on and also broke the sandboxed package if it
      was installed in the sandboxed package DB (see #1229).
      
      This commit replaces that hack with a more principled approach: we create a plan
      for the whole environment (all packages installed in the sandbox), constraining
      the modified add-source deps to be reinstalled and the already installed
      packages to be preferably not.
      
      Fixes #1229.
      99dc4056
  25. 13 May, 2013 1 commit
  26. 18 Apr, 2013 1 commit
  27. 04 Mar, 2013 1 commit