[Hackage] #880: Honour both --only-dependencies and --reinstall for cabal install command.

Hackage cvs-ghc at haskell.org
Wed Aug 31 19:09:38 CEST 2011

#880: Honour both --only-dependencies and --reinstall for cabal install command.
  Reporter:  lndbrg              |        Owner:          
      Type:  defect              |       Status:  new     
  Priority:  normal              |    Milestone:          
 Component:  cabal-install tool  |      Version:
  Severity:  normal              |     Keywords:          
Difficulty:  easy (<4 hours)     |   Ghcversion:          
  Platform:                      |  
 Cabal should be able to reinstall all dependencies of a package easily.

 Steps to Reproduce:
 1. Break your cabal install somehow, keeping the database of the installed
 packages. For example remove the ~/.cabal folder.
 2. Try to install a program with a dependency that you installed before
 via cabal (and resided in ~/.cabal)
 3. Get error message about missing files/broken package.
 4. Try to reinstall the dependencies of the program you want to reinstall:
 cabal install foo --reinstall --only-dependencies

 Expected results:
 all dependencies of foo is reinstalled.

 Actual result:
 Resolving dependencies...
 No packages to be installed. All the requested packages are already
 If you want to reinstall anyway then use the --reinstall flag.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/880>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list