[commit: Cabal] master: Updated patch for world-file support (1dd404c)
Ian Lynagh
igloo at earth.li
Fri Jun 24 02:04:37 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/1dd404c9dc8200d39af4d3aca62fc8ffc7f5248b
>---------------------------------------------------------------
commit 1dd404c9dc8200d39af4d3aca62fc8ffc7f5248b
Author: Peter Robinson <thaldyron at gmail.com>
Date: Tue Nov 3 20:29:27 2009 +0000
Updated patch for world-file support
Update 2: now uses writeFileAtomic from Cabal
This is a new patch for Ticket #199; it adds the "--one-shot" option.
A world file entry contains the package-name, package-version, and
user flags (if any).
For example, the file entry generated by
# cabal install stm-io-hooks --flags="-debug"
looks like this:
# stm-io-hooks -any --flags="-debug"
To rebuild/upgrade the packages in world (e.g. when updating the compiler)
use
cabal install world
Installing package 'foo' without adding it to the world file:
# cabal install foo --one-shot
cabal-install/Distribution/Client/Config.hs | 14 +++-
cabal-install/Distribution/Client/Setup.hs | 33 ++++++--
cabal-install/Distribution/Client/Types.hs | 63 ++++++++++++++-
cabal-install/Distribution/Client/World.hs | 117 +++++++++++++++++++++++++++
cabal-install/Main.hs | 21 +++++-
cabal-install/cabal-install.cabal | 1 +
6 files changed, 236 insertions(+), 13 deletions(-)
Diff suppressed because of size. To see it, use:
git show 1dd404c9dc8200d39af4d3aca62fc8ffc7f5248b
More information about the Cvs-libraries
mailing list