Sat Jun 18 05:47:28 PDT 2011 Ganesh Sittampalam
tagged cabal-fork
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Jun 18 05:47:48 PDT 2011 Ganesh Sittampalam
* Rollback removal of cabal-install
A ./cabal-install/
A ./cabal-install/INSTALL
A ./cabal-install/Makefile
A ./cabal-install/README
A ./cabal-install/Setup.lhs
A ./cabal-install/cabal-install.cabal
A ./cabal-install/dependencies/
A ./cabal-install/dependencies/HTTP-2006.7.7/
A ./cabal-install/dependencies/HTTP-2006.7.7/LICENSE
A ./cabal-install/dependencies/HTTP-2006.7.7/Makefile
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/Browser.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/Base64.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/MD5.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/MD5Aux.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/Stream.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/Network/TCP.hs
A ./cabal-install/dependencies/HTTP-2006.7.7/README
A ./cabal-install/dependencies/HTTP-2006.7.7/Setup.lhs
A ./cabal-install/dependencies/HTTP-2006.7.7/http.cabal
A ./cabal-install/dependencies/HTTP-2006.7.7/test/
A ./cabal-install/dependencies/HTTP-2006.7.7/test/Makefile
A ./cabal-install/dependencies/HTTP-2006.7.7/test/get.hs
A ./cabal-install/etc-cabal-install/
A ./cabal-install/etc-cabal-install/serv.list
A ./cabal-install/src/
A ./cabal-install/src/CabalInstall.hs
A ./cabal-install/src/Network/
A ./cabal-install/src/Network/Hackage/
A ./cabal-install/src/Network/Hackage/CabalInstall/
A ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Clean.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/List.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Main.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/TarUtils.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs
A ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs
A ./cabal-install/src/Network/Hackage/Version.hs
A ./cabal-install/test-cabal-install
A ./cabal-install/test-cabal-install-user
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Jun 18 23:45:49 PDT 2011 Ganesh Sittampalam
* clone LICENSE and copyright into cabal-install/
A ./cabal-install/LICENSE
A ./cabal-install/copyright
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Apr 9 08:46:54 PDT 2007 bjorn@bringert.net
* Removed one level of indirection in the command-line options parsing.
Before, getOpt would return a list of Flag, which had a one-to-one correspondence with functions TempFlags -> TempFlags. This made it uneccessarily difficult and error-prone to add new flags. I removed the Flag type and replaced the values with TempFlags -> TempFlags functions. This should have the side effect of making the tar path flag work, since it was not interpreted before.
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -59 +40
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -14 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Apr 9 10:04:09 PDT 2007 bjorn@bringert.net
* build-dep can now build the dependencies specified in a local .cabal file.
This is useful when you want to build a development version of something whose dependencies are available in Hackage.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -2 +11
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Main.hs -2 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Apr 10 09:59:54 PDT 2007 bringert@cs.chalmers.se
* Fixed path to LICENSE file in .cabal file.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 22 04:43:58 PDT 2007 bjorn@bringert.net
* Don't print Downloading 'package.tar.gz' twice.
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -2 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 22 04:52:15 PDT 2007 bjorn@bringert.net
* Print ... after Downloading message.
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 07:33:52 PDT 2007 Pepe Iborra
* Upgraded to filepath & first steps towards Windows compatibility
M ./cabal-install/cabal-install.cabal -1 +1
A ./cabal-install/dependencies/filepath-1.0/
A ./cabal-install/dependencies/filepath-1.0/System/
A ./cabal-install/dependencies/filepath-1.0/System/FilePath/
A ./cabal-install/dependencies/filepath-1.0/System/FilePath.hs
A ./cabal-install/dependencies/filepath-1.0/System/FilePath/Internal.hs
A ./cabal-install/dependencies/filepath-1.0/System/FilePath/Posix.hs
A ./cabal-install/dependencies/filepath-1.0/System/FilePath/Windows.hs
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -16 +19
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -4 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -6 +12
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -4 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/TarUtils.hs -5 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -3 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 09:20:33 PDT 2007 Duncan Coutts
* Fix default verbosity
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 09:21:17 PDT 2007 Duncan Coutts
* List packages in name and version order (case-insensitively)
M ./cabal-install/src/Network/Hackage/CabalInstall/List.hs -2 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 09:22:24 PDT 2007 Duncan Coutts
* Get the version from the cabal-generated paths module
M ./cabal-install/src/Network/Hackage/Version.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:23:03 PDT 2007 Duncan Coutts
* Tweak where the default config lives and where we keep the package list
This should make it all "Just Work"tm. We no longer need a Makefile
to do the installation. The point is, don't bother trying to use
/etc/cabal-install/srve.list as the global list. That's hard to do
because it involves installing that file, and we only want to do that
for global installs, so it's even more complex. Instead we should just
use cabal's facility to install data files. That way it ends up in
/usr/local/share/cabal-install-x.y/
or somewhere similar for a user install. But either way, cabal handles it.
The per-user config sill overrides this one, so it's still possible to edit
the list even if /usr/local/share/ is read-only. Also, we always use
$HOME/.cabal-install/ for the per-user config and package cache.
The one downside is that if an admin wants to use /etc/ and /var rather
than /root/.cabal-install/ then this is a tad harder. But the point is
at the moment it'll at least work for most people without fiddling,
including windows users.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -13 +20
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -21 +10
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -4 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:33:48 PDT 2007 Duncan Coutts
* Make the -v flag mean -v2 like cabal does, not -v3
This is relevant since we pass on this default verbosity when we call cabal,
so it's much better if they match up.
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:34:49 PDT 2007 Duncan Coutts
* Be less verbose when parsing all the package's .cabal files
So that at ordinary -v1 we do not get lots of silly warnings for outdated
.cabal files, like warnings about hs-src-dir vs hs-src-dirs.
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:36:00 PDT 2007 Duncan Coutts
* Add message when creating the package config files.
Enabled at -v2
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -2 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:37:42 PDT 2007 Duncan Coutts
* Change various things in our own .cabal file
Fix the license, it's BSD3 not BSD4 (I double checked with Issac)
Have cabal install the serv.list for us as a data file.
Add HTTP and filepath as dependencies, rather than bundling them.
./cabal-install/etc-cabal-install/serv.list -> ./cabal-install/serv.list
M ./cabal-install/cabal-install.cabal -8 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:40:46 PDT 2007 Duncan Coutts
* Use the new hackage package archive url
M ./cabal-install/serv.list -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 3 12:41:08 PDT 2007 Duncan Coutts
* Remove the Makefile and the redundant install instructions
We can now install purely using cabal, no Makefile needed.
The install instrcutions previously said to install the data
file manually, but cabal does that for us now.
R ./cabal-install/INSTALL
R ./cabal-install/Makefile
R ./cabal-install/etc-cabal-install/
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 4 03:46:40 PDT 2007 Duncan Coutts
* Fix dep on HTTP package
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 4 03:46:52 PDT 2007 Duncan Coutts
* Use user installs by default
So it "Just Works"tm without needing extra options or sudo fiddling.
If you care you can still do sudo fiddling and --global-install
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 6 08:20:13 PDT 2007 Ross Paterson
* follow change of directory layout of the HackageDB data
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 8 01:52:42 PDT 2007 Pepe Iborra
* Add missing import
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 20 14:31:29 PDT 2007 bringert@cs.chalmers.se
* Changed HTTP version dep to HTTP >= 3000.0 && < 3000.1
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 20 14:56:35 PDT 2007 bjorn@bringert.net
* Print download URL with -v, to allow debugging download errors.
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 20 15:16:11 PDT 2007 bjorn@bringert.net
* Follow directory layout of HackageDB data also when calculating URLs to download from, not just the local paths.
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 20 10:37:52 PDT 2007 Pepe Iborra
* Upgraded to Distribution.Verbosity
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -9 +10
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -5 +8
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -3 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -3 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 20 13:21:37 PDT 2007 Pepe Iborra
* Be more robust when dealing with external tar
M ./cabal-install/src/Network/Hackage/CabalInstall/TarUtils.hs -2 +3
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon May 21 02:42:12 PDT 2007 Pepe Iborra
* Unbreak package retrieval on Windows
Fixes a bug in my previous filepath patch
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -2 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon May 21 02:44:21 PDT 2007 Pepe Iborra
* Be more verbose in Update
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -1 +6
A ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jul 10 11:13:42 PDT 2007 Spencer Janssen
* Add modules to cabal-setup.cabal: this makes Setup sdist work
M ./cabal-install/cabal-install.cabal +18
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Aug 28 10:25:28 PDT 2007 Duncan Coutts
* make it build with cabal-1.1.7
But it does not work yet as it need to be updated to take configurations into
account. At the moment it thinks no packages have any dependencies since
it does not finalise the configuration for the package.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -2 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -15 +19
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -6 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Sep 6 16:22:55 PDT 2007 Duncan Coutts
* Fixups for recent cabal api changes
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -2 +8
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -1 +6
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -1 +6
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Sep 16 20:31:18 PDT 2007 Duncan Coutts
* Fix LICENSE and remove duplicate copyright file
Lemmih, Paolo Martini are the primary authors of cabal-install but were
missing from the list in LICENCE.
M ./cabal-install/LICENSE -1 +4
R ./cabal-install/copyright
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 3 14:01:23 PDT 2007 bjorn@bringert.net
* Changed Cabal dep from >=1.1.7 to >=1.2.0, since 1.1.7 was just the development version.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 07:05:21 PDT 2007 bjorn@bringert.net
* Refactor getDependency to make it easier to understand.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -16 +12
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 07:44:21 PDT 2007 bjorn@bringert.net
* Refactoring: add listInstalledPackages, and use that everywhere instead of getInstalledPackages with lots of arguments that all come from ConfigFlags.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -8 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs +14
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -8 +3
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -8 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 09:13:53 PDT 2007 bjorn@bringert.net
* Refactoring: add Dependency.isInstalled and use it.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -3 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 09:25:38 PDT 2007 bjorn@bringert.net
* Refactor flattenDepList.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -15 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 10:50:47 PDT 2007 bjorn@bringert.net
* Refactor getBuildDeps and redefine flattenDepList in terms of it.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -15 +11
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 11:09:50 PDT 2007 bjorn@bringert.net
* Refactoring: change getLatestPkg to work on PkgInfo, and use it in getDependency.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -15 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Oct 4 14:55:16 PDT 2007 bjorn@bringert.net
* Store GenericPackageDescriptions, and finalize when resolving dependencies.
This is very untested, but should make cabal-install able to resolve
dependencies again after the move to Cabal 1.2.0. The package descriptions
are stored in a very hacky format atm the moment.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -2 +17
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -17 +44
M ./cabal-install/src/Network/Hackage/CabalInstall/List.hs -8 +11
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -7 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -12 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 5 03:51:42 PDT 2007 bjorn@bringert.net
* Attempts to use --flags options to set configurations flags when finalizing packages.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -4 +17
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 5 03:55:10 PDT 2007 bjorn@bringert.net
* Change Cabal dependency to Cabal>=1.3.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 5 08:38:24 PDT 2007 bjorn@bringert.net
* Use the ungzipped 00-index.tar as the local package info cache.
This adds a dependency on zlib, to unzip the downloaded 00-index.tar.gz.
Once unzipped, a small pure haskell tar reader is used to read
the index contents.
Servers in the server list now have names which are used
as local cache directory names.
The --with-server command line flag has been removed since it
did not allow specifying a server name.
M ./cabal-install/cabal-install.cabal -1 +3
M ./cabal-install/serv.list -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -35 +30
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -8 +9
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -3
A ./cabal-install/src/Network/Hackage/CabalInstall/Tar.hs
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -2 +6
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -32 +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 5 08:54:41 PDT 2007 bjorn@bringert.net
* Use the package-url field in the GenericPackageDescription to record the tarball url for each package.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -7 +22
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -5 +13
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 5 23:35:35 PDT 2007 bjorn@bringert.net
* Store downloaded source code tarballs under the repo directory.
This required changing the PkgInfo type from an alias for GenericPackageDescription
to a record with a Repo and a GenericPackageDescription.
ResolvedPackage and ResolvedDependency also had to be changed to
keep a Repo rather than a tarball URL.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -14 +21
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -2 +3
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -20 +20
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -33 +26
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -4 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -9 +9
M ./cabal-install/src/Network/Hackage/CabalInstall/List.hs -7 +9
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -4 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 01:37:57 PDT 2007 bjorn@bringert.net
* s/parseDescription/parsePackageDescription/.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 01:38:29 PDT 2007 bjorn@bringert.net
* Compile with -Wall. There are tons of warnings.
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 02:16:15 PDT 2007 bjorn@bringert.net
* Fix dependency parsing from the command line. Before it accepted partial parses, which for example made "cgi=3" parse as "cgi".
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -4 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 03:01:57 PDT 2007 bjorn@bringert.net
* Remove unused TarUtils import from Update.
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 02:33:13 PDT 2007 Lemmih
* Sensible defaults in case of missing or erroneous server lists.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -6 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 03:12:46 PDT 2007 bjorn@bringert.net
* Removed the unused configPkgListDir.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -4
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -5 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -3
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 03:25:25 PDT 2007 bjorn@bringert.net
* Remove the unused configRunHc.
M ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs -7 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -2 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -1
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 08:31:22 PDT 2007 bjorn@bringert.net
* Added extraction to the simple TAR implementation.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -4 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Tar.hs -8 +86
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 08:48:47 PDT 2007 bjorn@bringert.net
* Use our native Haskell tar implementation to extract code from tarballs. We now don't use an external tar program for anything.
M ./cabal-install/cabal-install.cabal -1
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -23 +16
M ./cabal-install/src/Network/Hackage/CabalInstall/Tar.hs -1 +11
R ./cabal-install/src/Network/Hackage/CabalInstall/TarUtils.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 15:53:04 PDT 2007 bjorn@bringert.net
* Added a config file. Removed the old serv.list file. Added dinstall directory command line arguments.
M ./cabal-install/cabal-install.cabal -2
R ./cabal-install/serv.list
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -2 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -61 +203
R ./cabal-install/src/Network/Hackage/CabalInstall/Configure.hs
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -15 +18
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -8 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -15 +43
M ./cabal-install/src/Network/Hackage/CabalInstall/Main.hs -5 +9
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -58 +83
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -23 +24
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs +47
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 15:55:46 PDT 2007 bjorn@bringert.net
* Some detabification.
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -7 +7
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -5 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 6 16:20:17 PDT 2007 bjorn@bringert.net
* Get rid of OutputGen.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -79 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -7 +6
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -8 +28
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -12 +10
M ./cabal-install/src/Network/Hackage/CabalInstall/List.hs -2 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -34
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 00:10:43 PDT 2007 bjorn@bringert.net
* Updated README. It's rather incomplete.
M ./cabal-install/README -9 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 01:44:00 PDT 2007 bjorn@bringert.net
* Dummy config file writer.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 01:46:18 PDT 2007 bjorn@bringert.net
* Untabify the rest of the code.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -2 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -3 +3
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs -3 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 01:56:48 PDT 2007 bjorn@bringert.net
* Added TODO file.
A ./cabal-install/TODO
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 02:04:09 PDT 2007 bjorn@bringert.net
* Use default configuration if we can't parse the config file.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 02:04:30 PDT 2007 bjorn@bringert.net
* Actually write some fields to the config file.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -5 +14
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 02:31:21 PDT 2007 bjorn@bringert.net
* user-install field in config file.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs -3 +23
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 02:34:10 PDT 2007 bjorn@bringert.net
* Added cachedir field to config file.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 02:47:03 PDT 2007 bjorn@bringert.net
* Added config file fields for all the install dir templates.
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -9 +18
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 03:01:13 PDT 2007 bjorn@bringert.net
* Create .cabal directory before writing .cabal/config
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 03:02:58 PDT 2007 bjorn@bringert.net
* Replace zlib use by compression.
M ./cabal-install/TODO -2
M ./cabal-install/cabal-install.cabal -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Tar.hs -3 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 03:04:11 PDT 2007 bjorn@bringert.net
* Removed some fixed FIXMEs.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -2
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 03:06:16 PDT 2007 bjorn@bringert.net
* Removed old bit-rotted commented-out getReverseDeps.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -29
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 03:12:49 PDT 2007 bjorn@bringert.net
* Some minor refactoring.n
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -5 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -4 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 03:26:31 PDT 2007 bjorn@bringert.net
* Some -Wall policing.
M ./cabal-install/src/Network/Hackage/CabalInstall/Clean.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -10 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -4 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -3
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -14 +8
M ./cabal-install/src/Network/Hackage/CabalInstall/List.hs -3 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -2 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -2
M ./cabal-install/src/Network/Hackage/CabalInstall/Update.hs -10 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Utils.hs -9 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 04:57:44 PDT 2007 bjorn@bringert.net
* Only configure the compiler once per command.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -3 +5
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -11 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -11 +13
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -2 +3
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -3 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -5 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 05:13:33 PDT 2007 bjorn@bringert.net
* Renamed executable to 'cabal'.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 05:13:50 PDT 2007 bjorn@bringert.net
* Set prefix to .cabal by default.
M ./cabal-install/src/Network/Hackage/CabalInstall/Clean.hs -3 +2
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -14 +11
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 05:35:22 PDT 2007 bjorn@bringert.net
* resolveDependencies does not need a list of installed packages as argument.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -8 +6
M ./cabal-install/src/Network/Hackage/CabalInstall/Fetch.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -1 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -6 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 05:45:49 PDT 2007 bjorn@bringert.net
* Make resolveDependenciesAux pure.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -3 +4
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -7 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 05:54:57 PDT 2007 bjorn@bringert.net
* Check that there is a sanely named .cabal file after unpacking a code tarball.
M ./cabal-install/src/Network/Hackage/CabalInstall/Install.hs -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 05:58:40 PDT 2007 bjorn@bringert.net
* Move listInstalledPackages to Config.
M ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs -2 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Config.hs -1 +12
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -12 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Info.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 06:01:12 PDT 2007 bjorn@bringert.net
* Don't export finalizePackage.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 06:04:36 PDT 2007 bjorn@bringert.net
* Removed the build-dep command. It has been been broken since we started to use configurations, and should be subsumed by the planned cabal-setup integration.
M ./cabal-install/cabal-install.cabal -1
R ./cabal-install/src/Network/Hackage/CabalInstall/BuildDep.hs
M ./cabal-install/src/Network/Hackage/CabalInstall/Main.hs -4
M ./cabal-install/src/Network/Hackage/CabalInstall/Setup.hs -4 +1
M ./cabal-install/src/Network/Hackage/CabalInstall/Types.hs -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 06:13:49 PDT 2007 bjorn@bringert.net
* Some refactoring of the Dependency module.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -13 +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 06:16:48 PDT 2007 bjorn@bringert.net
* Oops, I removed the filtering out of already installed packages from resolveDependencies.
M ./cabal-install/src/Network/Hackage/CabalInstall/Dependency.hs -11 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:09:01 PDT 2007 Don Stewart
* Use Cabal.* namespace, not CabalInstall.* (since its the 'cabal' executable in the end)
./cabal-install/src/CabalInstall.hs -> ./cabal-install/src/Cabal.hs
./cabal-install/src/Network/Hackage/CabalInstall -> ./cabal-install/src/Network/Hackage/Cabal
M ./cabal-install/src/Cabal.hs -2 +14
M ./cabal-install/src/Network/Hackage/Cabal/Clean.hs -3 +3
M ./cabal-install/src/Network/Hackage/Cabal/Config.hs -5 +5
M ./cabal-install/src/Network/Hackage/Cabal/Dependency.hs -4 +4
M ./cabal-install/src/Network/Hackage/Cabal/Fetch.hs -5 +5
M ./cabal-install/src/Network/Hackage/Cabal/Info.hs -6 +6
M ./cabal-install/src/Network/Hackage/Cabal/Install.hs -7 +7
M ./cabal-install/src/Network/Hackage/Cabal/List.hs -4 +4
M ./cabal-install/src/Network/Hackage/Cabal/Main.hs -11 +11
M ./cabal-install/src/Network/Hackage/Cabal/Setup.hs -4 +4
M ./cabal-install/src/Network/Hackage/Cabal/Tar.hs -17 +21
M ./cabal-install/src/Network/Hackage/Cabal/Types.hs -2 +2
M ./cabal-install/src/Network/Hackage/Cabal/Update.hs -5 +5
M ./cabal-install/src/Network/Hackage/Cabal/Utils.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:09:24 PDT 2007 Don Stewart
* Update to cabal configurations. (Due to broken base numbering though, we can't write a version that works with 6.6 :(
M ./cabal-install/cabal-install.cabal -37 +43
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:24:35 PDT 2007 Don Stewart
* updated license / readme
M ./cabal-install/LICENSE -1 +1
M ./cabal-install/README -1 +21
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:26:44 PDT 2007 Don Stewart
* portable Setup.lhs
M ./cabal-install/Setup.lhs -6 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:30:00 PDT 2007 Don Stewart
* move tests under tests
./cabal-install/test-cabal-install -> ./cabal-install/tests/test-cabal-install
./cabal-install/test-cabal-install-user -> ./cabal-install/tests/test-cabal-install-user
A ./cabal-install/tests/
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:34:07 PDT 2007 Don Stewart
* move directory hierarchy up one level
./cabal-install/src/Cabal.hs -> ./cabal-install/Cabal.hs
./cabal-install/src/Network -> ./cabal-install/Network
M ./cabal-install/TODO +4
M ./cabal-install/cabal-install.cabal -1
R ./cabal-install/src/
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:43:09 PDT 2007 Don Stewart
* Flatten cabal install namespace!
./cabal-install/Network/Hackage/Cabal/Clean.hs -> ./cabal-install/Network/Hackage/Clean.hs
./cabal-install/Network/Hackage/Cabal/Config.hs -> ./cabal-install/Network/Hackage/Config.hs
./cabal-install/Network/Hackage/Cabal/Dependency.hs -> ./cabal-install/Network/Hackage/Dependency.hs
./cabal-install/Network/Hackage/Cabal/Fetch.hs -> ./cabal-install/Network/Hackage/Fetch.hs
./cabal-install/Network/Hackage/Cabal/Info.hs -> ./cabal-install/Network/Hackage/Info.hs
./cabal-install/Network/Hackage/Cabal/Install.hs -> ./cabal-install/Network/Hackage/Install.hs
./cabal-install/Network/Hackage/Cabal/List.hs -> ./cabal-install/Network/Hackage/List.hs
./cabal-install/Network/Hackage/Cabal/Main.hs -> ./cabal-install/Main.hs
./cabal-install/Network/Hackage/Cabal/Setup.hs -> ./cabal-install/Network/Hackage/Setup.hs
./cabal-install/Network/Hackage/Cabal/Tar.hs -> ./cabal-install/Network/Hackage/Tar.hs
./cabal-install/Network/Hackage/Cabal/Types.hs -> ./cabal-install/Network/Hackage/Types.hs
./cabal-install/Network/Hackage/Cabal/Update.hs -> ./cabal-install/Network/Hackage/Update.hs
./cabal-install/Network/Hackage/Cabal/Utils.hs -> ./cabal-install/Network/Hackage/Utils.hs
./cabal-install/Network/Hackage -> ./cabal-install/Hackage
R ./cabal-install/Cabal.hs
R ./cabal-install/Hackage/Cabal/
M ./cabal-install/Hackage/Clean.hs -3 +3
M ./cabal-install/Hackage/Config.hs -5 +5
M ./cabal-install/Hackage/Dependency.hs -4 +4
M ./cabal-install/Hackage/Fetch.hs -5 +5
M ./cabal-install/Hackage/Info.hs -6 +6
M ./cabal-install/Hackage/Install.hs -7 +7
M ./cabal-install/Hackage/List.hs -4 +4
M ./cabal-install/Hackage/Setup.hs -4 +4
M ./cabal-install/Hackage/Tar.hs -1 +1
M ./cabal-install/Hackage/Types.hs -2 +2
M ./cabal-install/Hackage/Update.hs -5 +5
M ./cabal-install/Hackage/Utils.hs -1 +1
M ./cabal-install/Hackage/Version.hs -1 +1
M ./cabal-install/Main.hs -11 +11
R ./cabal-install/Network/
M ./cabal-install/cabal-install.cabal -15 +14
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 08:50:13 PDT 2007 Don Stewart
* polish
M ./cabal-install/Main.hs -29 +37
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 09:13:02 PDT 2007 Don Stewart
* -Wall police
M ./cabal-install/Hackage/Config.hs -4 +5
M ./cabal-install/Hackage/Dependency.hs -4 +4
M ./cabal-install/Hackage/Info.hs -22 +25
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/List.hs -1 +1
M ./cabal-install/Hackage/Setup.hs -4 +4
M ./cabal-install/Hackage/Update.hs -4 +3
R ./cabal-install/Hackage/Version.hs
M ./cabal-install/Main.hs -3 +2
M ./cabal-install/cabal-install.cabal -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 7 14:25:38 PDT 2007 bjorn@bringert.net
* Rewrote the package dependency analysis code.
It is now about half as much code, and uses fewer and simpler
functions and data types. The external interface is now much smaller,
which meant that I had to change quite a bit of other code.
I orignally wrote this in parallel with dons' clean-up changes,
and had to merge by hand since darcs went into mad exponential conflict mode.
I hope I didn't revert too many of dons' changes.
M ./cabal-install/Hackage/Config.hs -13 +15
M ./cabal-install/Hackage/Dependency.hs -142 +90
M ./cabal-install/Hackage/Fetch.hs -38 +25
M ./cabal-install/Hackage/Info.hs -43 +36
M ./cabal-install/Hackage/Install.hs -27 +19
M ./cabal-install/Hackage/Types.hs -14 +12
M ./cabal-install/Main.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 8 13:05:32 PDT 2007 bjorn@bringert.net
* Changed zlib >= 0.4 to zlib >= 0.3. 0.3 works fine for me, and 0.4 is not on hackage yet.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 8 13:08:32 PDT 2007 bjorn@bringert.net
* Handle -fflag options.
M ./cabal-install/Hackage/Dependency.hs -9 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 8 13:12:51 PDT 2007 bjorn@bringert.net
* Changed finalization to say that all installed and available packages can be used to resolve dependencies. This is overly optimistic, since some of the available packages may not be installable because of missing deps. We probably need to look at the entire dependency graph.
M ./cabal-install/Hackage/Dependency.hs -5 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 8 13:44:52 PDT 2007 bjorn@bringert.net
* Ok, I see. zlib >= 0.4 is needed since 0.3 wont install with ghc 6.8.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 8 14:18:36 PDT 2007 bjorn@bringert.net
* Changed configurations to make it build with ghc 6.8 and ghc 6.6. I haven't tested 6.6.1, but it should work.
M ./cabal-install/cabal-install.cabal -1 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 05:01:15 PDT 2007 bjorn@bringert.net
* Call findCompiler in Main for the commands that need it.
M ./cabal-install/Hackage/Fetch.hs -5 +6
M ./cabal-install/Hackage/Info.hs -4 +5
M ./cabal-install/Hackage/Install.hs -5 +5
M ./cabal-install/Main.hs -2 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 05:34:12 PDT 2007 bjorn@bringert.net
* Use --with-compiler and --with-hc-pkg.
M ./cabal-install/Hackage/Config.hs -2 +6
M ./cabal-install/Hackage/Setup.hs -2 +2
M ./cabal-install/Hackage/Types.hs +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 05:58:01 PDT 2007 bjorn@bringert.net
* cabal list now only shows one line per package, with a list of verions.
M ./cabal-install/Hackage/List.hs -6 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 07:00:29 PDT 2007 bjorn@bringert.net
* 'cabal install' without argument now installs all the dependencies of the package in the current directory, and then configures, builds and installs it.
M ./cabal-install/Hackage/Dependency.hs -3 +19
M ./cabal-install/Hackage/Install.hs -15 +36
M ./cabal-install/Hackage/Setup.hs -11
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 07:29:19 PDT 2007 bjorn@bringert.net
* Verbosity fixes.
M ./cabal-install/Hackage/Fetch.hs -1 +1
M ./cabal-install/Hackage/Install.hs -7 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 07:35:02 PDT 2007 bjorn@bringert.net
* More verbosity fixes.
M ./cabal-install/Hackage/Install.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 14:56:59 PDT 2007 bjorn@bringert.net
* Pass -vN rather that --verbose=N to SetupWrapper, since older versions required --verbosity rather that --verbose.
M ./cabal-install/Hackage/Install.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Oct 13 15:22:38 PDT 2007 bjorn@bringert.net
* Don't say "Nothing to do" when installing the dependencies of a local package.
M ./cabal-install/Hackage/Install.hs -15 +16
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 12 04:20:52 PDT 2007 Duncan Coutts
* Don't report errors on cleaning when it's already clean
We now ignore file not found errors when deleting the packages dir.
Otherwise when we clean and then clean again we get an exception since
the directory we're trying to delete has already been deleted.
M ./cabal-install/Hackage/Clean.hs -2 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Oct 12 04:22:37 PDT 2007 Duncan Coutts
* Remove the bundled deps as they're totally out of date
R ./cabal-install/dependencies/
R ./cabal-install/dependencies/HTTP-2006.7.7/
R ./cabal-install/dependencies/HTTP-2006.7.7/LICENSE
R ./cabal-install/dependencies/HTTP-2006.7.7/Makefile
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/Browser.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/Base64.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/MD5.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/HTTP/MD5Aux.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/Stream.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/Network/TCP.hs
R ./cabal-install/dependencies/HTTP-2006.7.7/README
R ./cabal-install/dependencies/HTTP-2006.7.7/Setup.lhs
R ./cabal-install/dependencies/HTTP-2006.7.7/http.cabal
R ./cabal-install/dependencies/HTTP-2006.7.7/test/
R ./cabal-install/dependencies/HTTP-2006.7.7/test/Makefile
R ./cabal-install/dependencies/HTTP-2006.7.7/test/get.hs
R ./cabal-install/dependencies/filepath-1.0/
R ./cabal-install/dependencies/filepath-1.0/System/
R ./cabal-install/dependencies/filepath-1.0/System/FilePath/
R ./cabal-install/dependencies/filepath-1.0/System/FilePath.hs
R ./cabal-install/dependencies/filepath-1.0/System/FilePath/Internal.hs
R ./cabal-install/dependencies/filepath-1.0/System/FilePath/Posix.hs
R ./cabal-install/dependencies/filepath-1.0/System/FilePath/Windows.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 14 10:10:35 PDT 2007 Duncan Coutts
* Improve the error message we get when missing the package index file
M ./cabal-install/Hackage/Config.hs -8 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 14 11:51:04 PDT 2007 Duncan Coutts
* Add an extra space when displaying package version lists
eg: "xmonad [0.1, 0.2, 0.3]" rather than "xmonad [0.1,0.2,0.3]"
it's just a tad easier to read.
M ./cabal-install/Hackage/List.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 01:57:35 PDT 2007 bjorn@bringert.net
* Change Cabal dep to >=1.2 now that the required patches are in the 1.2 branch. This should really be >= 1.2.1, but the version number of the 1.2 has not been bumped yet.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 01:58:33 PDT 2007 bjorn@bringert.net
* Changed zlib dependency to 0.3 to be able to compile using 6.6 and deps from hackage.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 02:09:57 PDT 2007 bjorn@bringert.net
* Added deriving Show to all the types in Hackage.Types, useful for debugging.
M ./cabal-install/Hackage/Types.hs -2 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 02:10:22 PDT 2007 bjorn@bringert.net
* Set preifx to the global default when the config file says to do a global install. This still doesn't work if --global is given on the command line. Print the complete config if verbosity >= verbose. Don't save prefix to the config file, since that means we will use the user default even for global installs.
M ./cabal-install/Hackage/Config.hs -8 +21
M ./cabal-install/Main.hs -2 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 04:23:06 PDT 2007 bjorn@bringert.net
* Removed mtl and unix dependencies, they don't seem to be required.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 08:35:25 PDT 2007 bjorn@bringert.net
* The ConfigFlags now contain two different sets of install dirs, one for global and one for user installs.
This simplifies the install dirs handling a lot, and allows the user to specify both user and global install dirs in the config file, and chose installation type on the command line.
We now ignore the config file and command-line compiler flavor when choosing install directories, since that
is so messy. This might break installs with Hugs, but that requires testing.
The old code didn't work when the compiler was specified on the command-line anyway.
M ./cabal-install/Hackage/Config.hs -33 +46
M ./cabal-install/Hackage/Install.hs -2 +5
M ./cabal-install/Hackage/Setup.hs -3 +12
M ./cabal-install/Hackage/Types.hs -1 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 14:54:39 PDT 2007 bjorn@bringert.net
* Moved the local package index reading to a new module, Hackage.Index.
M ./cabal-install/Hackage/Config.hs -36 +2
M ./cabal-install/Hackage/Dependency.hs -1 +2
A ./cabal-install/Hackage/Index.hs
M ./cabal-install/Hackage/List.hs -1 +1
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 15 17:46:06 PDT 2007 Duncan Coutts
* Parse multiple repo urls listed in the .cabal/config correctly
The url part cannot contain any chars, since then we allow spaces and ',' and
thus break parsing of following repos.
M ./cabal-install/Hackage/Config.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 17:43:09 PDT 2007 Duncan Coutts
* Make package searches ~100x faster but less featurefull
Instead of parsing every .cabal file in the package list (which is very slow)
We now just get the package name and version and do a case-insensitive
substring search on the package name. The output format remains unchanged.
So we no longer search inside package descriptions.
M ./cabal-install/Hackage/Index.hs -10 +20
M ./cabal-install/Hackage/Install.hs +1
M ./cabal-install/Hackage/List.hs -21 +24
M ./cabal-install/Hackage/Types.hs -4 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 17:44:40 PDT 2007 Duncan Coutts
* Clean up redundant imports
M ./cabal-install/Hackage/Config.hs -1 +1
M ./cabal-install/Hackage/Dependency.hs -1 +1
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/List.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Oct 16 17:45:01 PDT 2007 Duncan Coutts
* Portability fixes to allow building with ghc-6.4 and ghc-6.6
M ./cabal-install/Hackage/List.hs -4 +7
M ./cabal-install/cabal-install.cabal -7 +13
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 17 12:08:48 PDT 2007 bjorn@bringert.net
* Fixed error message when some depedencies couldn't be resolved. Before it used show on Dependency, not showDependency.
Using fail here produces things like:
cabal: user error (Unresolved dependencies: containers -any, array -any, bytestring >=0.9)
It would be nice to get rid of the "user error" here.
M ./cabal-install/Hackage/Fetch.hs -1 +2
M ./cabal-install/Hackage/Info.hs -4 +1
M ./cabal-install/Hackage/Install.hs -2 +3
M ./cabal-install/Hackage/Utils.hs +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 17 14:11:26 PDT 2007 bjorn@bringert.net
* Parse command line arguments as either Dependency or PackageIDentifier, to allow e.g. 'cabal install binary-0.3'.
M ./cabal-install/Hackage/Setup.hs -3 +2
M ./cabal-install/Hackage/Utils.hs -2 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 17 14:15:14 PDT 2007 bjorn@bringert.net
* Added explicit Cabal imports to Utils.
M ./cabal-install/Hackage/Utils.hs -2 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 17 15:55:07 PDT 2007 Duncan Coutts
* Pass on the compiler to use when building a package
M ./cabal-install/Hackage/Install.hs -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 17 15:55:38 PDT 2007 Duncan Coutts
* It builds with HTTP-3001 as well.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Oct 17 16:06:53 PDT 2007 Duncan Coutts
* Fix handling of unadorned package names
ie make "cabal install xmonad" work ;-)
We were parsing unqalified package names as a dependency upon a specific but
empty version. That is treating "foo" as a dependency like "foo==".
We now treat unadroned package names as deps on any version.
M ./cabal-install/Hackage/Utils.hs -2 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 21 06:36:22 PDT 2007 Duncan Coutts
* Update description
M ./cabal-install/cabal-install.cabal -3 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 21 06:36:33 PDT 2007 Duncan Coutts
* Bump version to 0.4.0
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 21 07:38:56 PDT 2007 Duncan Coutts
tagged 0.4.0
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Oct 21 10:49:54 PDT 2007 Duncan Coutts
* Remove old non-existant copyright file from extra-source-files
We only have one LICENCE file
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Oct 22 15:21:15 PDT 2007 Duncan Coutts
* Read/write binary files using ByteString without .Char8 modules
ByteString.Char8 treats files as text files, which are really different
on windows. We were getting CRLF translation in Windows which was messing
everything up, like saving & reading the index file.
So now only use BS.Char8 where necessary.
M ./cabal-install/Hackage/Index.hs -3 +4
M ./cabal-install/Hackage/Tar.hs -7 +8
M ./cabal-install/Hackage/Update.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Dec 15 11:46:03 PST 2007 Duncan Coutts
* Replace command line handling
Use the new cabal command line handling infrastructure. Use proper flag types
rather than strings.
Drop support for per-package command line flags as it was generally agreed to
be confusing.
M ./cabal-install/Hackage/Config.hs -24 +25
M ./cabal-install/Hackage/Dependency.hs -28 +16
M ./cabal-install/Hackage/Info.hs -2 +3
M ./cabal-install/Hackage/Install.hs -73 +61
M ./cabal-install/Hackage/Setup.hs -176 +129
M ./cabal-install/Hackage/Types.hs -37 +15
M ./cabal-install/Main.hs -28 +153
M ./cabal-install/cabal-install.cabal -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 10:56:05 PST 2007 Duncan Coutts
* Add in more global help text like that of Setup.hs
M ./cabal-install/Hackage/Setup.hs -1 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 10:58:11 PST 2007 Duncan Coutts
* installCommand only ever needs to use defaultProgramConfiguration
So don't bother making it a parameter
M ./cabal-install/Hackage/Setup.hs -4 +4
M ./cabal-install/Main.hs -3 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 10:59:12 PST 2007 Duncan Coutts
* Add command listing support
first step to shell command line completion
M ./cabal-install/Main.hs +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 11:00:35 PST 2007 Duncan Coutts
* Add a verbosity flag to the info list update and fetch commands
M ./cabal-install/Hackage/Setup.hs -14 +25
M ./cabal-install/Main.hs -12 +19
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 12:58:13 PST 2007 Duncan Coutts
* Add Upload module direct copy of cabal-upload
A ./cabal-install/Hackage/Upload.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 13:06:21 PST 2007 Duncan Coutts
* Add the cabal-setup commands: configure, build etc
So we now have the complete set of commands in one tool.
This uses the new Command infrastructure to do two way conversion between
flags as strings and as a structured parsed form.
M ./cabal-install/Main.hs -45 +22
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 13:11:41 PST 2007 Duncan Coutts
* Remove redundant parameters
M ./cabal-install/Hackage/Fetch.hs -2 +2
M ./cabal-install/Hackage/Info.hs -2 +2
M ./cabal-install/Main.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 14:36:20 PST 2007 Duncan Coutts
* Fix usage message, swap program and sub-command names
M ./cabal-install/Hackage/Setup.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 14:37:48 PST 2007 Duncan Coutts
* Initial integration of upload feature
It still uses it's own config file, but now uses the same command line stuff
M ./cabal-install/Hackage/Setup.hs +74
M ./cabal-install/Hackage/Upload.hs -106 +47
M ./cabal-install/Main.hs +11
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 14:39:13 PST 2007 Duncan Coutts
* Remove unnecessary use of a type alias
M ./cabal-install/Main.hs -7 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 14:42:27 PST 2007 Duncan Coutts
* Add Bjorn Bringert to authors and copyright list
Since much recent cabal-install work is his and he wrote cabal-upload which
was just integrated.
M ./cabal-install/cabal-install.cabal -2 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 15:46:49 PST 2007 Duncan Coutts
* Get the saved hackage username and password from the config file
rather than from the old ~/.cabal-upload/auth file.
Now uses ~/.cabal/config with:
hackage-username:
hackage-password:
M ./cabal-install/Hackage/Config.hs -1 +14
M ./cabal-install/Hackage/Setup.hs -4 +2
M ./cabal-install/Hackage/Types.hs -1 +7
M ./cabal-install/Hackage/Upload.hs -24 +11
M ./cabal-install/Main.hs -4 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 15:49:34 PST 2007 Duncan Coutts
* Don't append '.' to filename in message. Make config file end in a new line.
M ./cabal-install/Hackage/Config.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 16:46:04 PST 2007 Duncan Coutts
* Make logging and verboisty a bit more consistent
Use the Distribution.Simple.Utils functions and eliminate use of printf
M ./cabal-install/Hackage/Config.hs -13 +11
M ./cabal-install/Hackage/Fetch.hs -11 +12
M ./cabal-install/Hackage/Index.hs -2 +4
M ./cabal-install/Hackage/Info.hs -24 +28
M ./cabal-install/Hackage/Install.hs -14 +10
M ./cabal-install/Hackage/Update.hs -2 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 17 16:47:24 PST 2007 Duncan Coutts
* Improve 'cabal info pkg' message when there is nothing to install
"All requested packages already installed. Nothing to do."
rather than:
"These packages would be installed:\n"
followed by ... nothing.
M ./cabal-install/Hackage/Info.hs +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Dec 18 03:12:20 PST 2007 bjorn@bringert.net
* Added dependency on random. Needed by Hackage.Upload.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Dec 19 13:57:47 PST 2007 Lennart Kolmodin
* Initial attempt at command line completion
A ./cabal-install/bash-completion/
A ./cabal-install/bash-completion/cabal
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 31 13:03:03 PST 2007 ijones@syntaxpolice.org
* improved error handling for multiple installs
When installing multiple packages, don't quit just after the first
error, but rather collect the list of packages that failed to install
continue installing whatever packages we can, and provide an error
message at the end.
M ./cabal-install/Hackage/Install.hs -2 +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Dec 31 13:39:53 PST 2007 ijones@syntaxpolice.org
* Added upgrade command
cabal upgrade installs the latest version of any currently installed
package.
M ./cabal-install/Hackage/Dependency.hs -2 +59
M ./cabal-install/Hackage/Setup.hs +9
A ./cabal-install/Hackage/Upgrade.hs
M ./cabal-install/Main.hs +10
M ./cabal-install/cabal-install.cabal +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Dec 21 12:15:00 PST 2007
* Added support for users behind proxy servers, reading system settings from the env var on unix or registry on windows
M ./cabal-install/Hackage/Fetch.hs -8 +5
A ./cabal-install/Hackage/HttpUtils.hs
M ./cabal-install/Hackage/Upload.hs -2 +5
M ./cabal-install/cabal-install.cabal +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 10 09:56:34 PST 2008 Duncan Coutts
* Significantly refactor configuration handling
ConfigFlags is not used in any of the modules that do the real work, instead
we just pass in the necessary information. Renamed ConfigFlags to SavedConfig
and moved it's definition into the Config module. Also change what information
is kept in the Repo type so that it knows the local path too. A PkgInfo now
also knows which Repo it is from.
M ./cabal-install/Hackage/Config.hs -99 +114
M ./cabal-install/Hackage/Dependency.hs -17 +20
M ./cabal-install/Hackage/Fetch.hs -27 +32
M ./cabal-install/Hackage/Index.hs -9 +7
M ./cabal-install/Hackage/Info.hs -14 +19
M ./cabal-install/Hackage/Install.hs -40 +62
M ./cabal-install/Hackage/List.hs -4 +5
M ./cabal-install/Hackage/Setup.hs -33 +2
M ./cabal-install/Hackage/Types.hs -31 +51
M ./cabal-install/Hackage/Update.hs -6 +6
M ./cabal-install/Hackage/Upgrade.hs -6 +9
M ./cabal-install/Hackage/Upload.hs -60 +36
M ./cabal-install/Main.hs -69 +65
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 10 10:01:37 PST 2008 Duncan Coutts
* Remove redundant code an re-enable accidentally disabled code
M ./cabal-install/Hackage/Install.hs -21
M ./cabal-install/Main.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 10 12:37:11 PST 2008 Duncan Coutts
* Depend on latest development version of Cabal lib
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 10 18:56:34 PST 2008 Duncan Coutts
* Fix getting verbosity flags
M ./cabal-install/Main.hs -4 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Jan 13 12:16:27 PST 2008 Duncan Coutts
* Allow finding the proxy to fail without failing overall
On windows, if looking up the info in the registry failed then we failed
overall. Now we just don't use the proxy. Also refactored a bit.
M ./cabal-install/Hackage/HttpUtils.hs -38 +37
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jan 14 06:13:13 PST 2008 Duncan Coutts
* Set the user install flag when restoring saved config
M ./cabal-install/Hackage/Config.hs +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jan 14 06:23:01 PST 2008 Duncan Coutts
* After refactoring the http proxy code we don't need the unix package
Which was just being used for an exception-free version of getEnv but we
have to cope with exceptions anyway for the Win32 registry.
M ./cabal-install/cabal-install.cabal -2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jan 14 06:34:56 PST 2008 Duncan Coutts
* Fix compilation on windows
Silly #ifdefs making things harder to test.
M ./cabal-install/Hackage/HttpUtils.hs +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 07:07:25 PST 2008 Duncan Coutts
* Use commandDefaultFlags = mempty rather than commandAddActionWithEmptyFlags
Simpler and simplifies the Command api in the Cabal lib
M ./cabal-install/Hackage/Setup.hs -4 +6
M ./cabal-install/Main.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 07:08:38 PST 2008 Duncan Coutts
* Remove unused var
M ./cabal-install/Hackage/Install.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 07:09:33 PST 2008 Duncan Coutts
* Refactor proxy handling yet again
This time to better handle parsing and warning about invalid proxy uris
M ./cabal-install/Hackage/Fetch.hs -13 +15
M ./cabal-install/Hackage/HttpUtils.hs -23 +37
M ./cabal-install/Hackage/Update.hs -1 +1
M ./cabal-install/Hackage/Upload.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 07:10:33 PST 2008 Duncan Coutts
* Use proxy port number rather than ignoring it
M ./cabal-install/Hackage/HttpUtils.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 08:02:33 PST 2008 Duncan Coutts
* Don't verbosely display the http conversation chatter by default
Though do display it at deafening verbosity level.
M ./cabal-install/Hackage/HttpUtils.hs -3 +10
M ./cabal-install/Hackage/Upload.hs -9 +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 08:03:47 PST 2008 Duncan Coutts
* Set the useragent string to be "cabal-install/$version"
eg, currently it is "cabal-install/0.4.2"
M ./cabal-install/Hackage/HttpUtils.hs -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jan 15 12:02:58 PST 2008 Duncan Coutts
* Have command line args override saved config not the other way around
Fixes setting the --prefix from the command line which was previously being
ignored in favour of the default prefix from the config file.
M ./cabal-install/Main.hs -4 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 17 09:30:17 PST 2008 Duncan Coutts
* Split ParseUtils module out of Utils module
./cabal-install/Hackage/Utils.hs -> ./cabal-install/Hackage/ParseUtils.hs
M ./cabal-install/Hackage/Config.hs -1 +2
M ./cabal-install/Hackage/Fetch.hs -1 +1
M ./cabal-install/Hackage/Info.hs -1 +1
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/ParseUtils.hs -16 +1
M ./cabal-install/Hackage/Setup.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 17 09:57:09 PST 2008 Duncan Coutts
* Add Utils module, tidy imports
M ./cabal-install/Hackage/ParseUtils.hs -6 +2
A ./cabal-install/Hackage/Utils.hs
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 17 09:58:54 PST 2008 Duncan Coutts
* Make a proper RepoIndex ADT
This represents the collection of packages from a remote repo.
It encodes the policies on how we find packages when we have multiple repos.
The policy is encoded in the repo merge operation and in the various kinds of
lookup functions.
M ./cabal-install/Hackage/Dependency.hs -28 +28
M ./cabal-install/Hackage/Index.hs -14 +191
M ./cabal-install/Hackage/List.hs -3 +5
M ./cabal-install/cabal-install.cabal -1 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 17 12:04:39 PST 2008 Duncan Coutts
* Move package substring searching into the Index module and use it in List
Not much faster but rather cleaner.
M ./cabal-install/Hackage/Index.hs -2 +14
M ./cabal-install/Hackage/List.hs -30 +23
M ./cabal-install/Hackage/Utils.hs -1 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jan 17 12:05:39 PST 2008 Duncan Coutts
* Disable a particularly slow invariant check
M ./cabal-install/Hackage/Index.hs -6 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 13:42:36 PST 2008 Duncan Coutts
* Trivial change to utils
M ./cabal-install/Hackage/Utils.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 13:51:32 PST 2008 Duncan Coutts
* Rename Hackage.Index -> Hackage.RepoIndex
In preperation to add Hackage.LocalIndex module
./cabal-install/Hackage/Index.hs -> ./cabal-install/Hackage/RepoIndex.hs
M ./cabal-install/Hackage/Dependency.hs -2 +2
M ./cabal-install/Hackage/List.hs -1 +1
M ./cabal-install/Hackage/RepoIndex.hs -2 +2
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 13:59:53 PST 2008 Duncan Coutts
* Add Hackage.LocalIndex module as an index of installed packages
Very much like the RepoIndex module but only holds package ids at the moment
rather that full InstalledPackageInfo records that we'd really prefer.
A ./cabal-install/Hackage/LocalIndex.hs
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 14:00:13 PST 2008 Duncan Coutts
* Update copyright and docs for RepoIndex
Added my copyright as I've almost completely rewritten the module.
M ./cabal-install/Hackage/RepoIndex.hs -3 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 14:07:03 PST 2008 Duncan Coutts
* Change Dependency module to use the LocalIndex ADT
The whole Dependency module is pure now, no IO since it takes the indexes
as arguments, rather than the many more args required to do the IO to load
up the indexes. Much nicer. Also update all callers.
M ./cabal-install/Hackage/Dependency.hs -70 +46
M ./cabal-install/Hackage/Fetch.hs -5 +10
M ./cabal-install/Hackage/Info.hs -1 +6
M ./cabal-install/Hackage/Install.hs -3 +11
M ./cabal-install/Hackage/Upgrade.hs -3 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 14:13:09 PST 2008 Duncan Coutts
* Remove unused listInstalledPackages, replaced by LocalIndex.read
M ./cabal-install/Hackage/Config.hs -10 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 14:55:45 PST 2008 Duncan Coutts
* Add IndexUtils with functions to disambiguate packaage names
To allow us to implement case-insensitivity in package names given on the
command line. We lookup in the package index for packages with the same name
case-insensitively. If there is no exact match exact case-sensitively and
there are more than one packages matching case-insensitively then it aborts
with a message listing the matches. This should not often happen since within
any single HackageDB server, we can check that packages names are unique
case-insensitively but it's possible to get ambiguities if cabal-install has
been configured to use multiple repos.
A ./cabal-install/Hackage/IndexUtils.hs
M ./cabal-install/Hackage/RepoIndex.hs +1
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jan 18 15:00:04 PST 2008 Duncan Coutts
* Treat package names given on the command line case insenitively
Implements feature request #167.
M ./cabal-install/Hackage/Fetch.hs -1 +3
M ./cabal-install/Hackage/Info.hs -1 +3
M ./cabal-install/Hackage/Install.hs -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Jan 19 07:52:19 PST 2008 Duncan Coutts
* Fix "cabal list" with no package specified
M ./cabal-install/Hackage/List.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Jan 19 09:01:55 PST 2008 Duncan Coutts
* Fix a warning.
All the other warnings are instances of ghc bug #1148.
M ./cabal-install/Hackage/Install.hs -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Jan 19 09:02:54 PST 2008 Duncan Coutts
* Note in the README than the unix package is not a dependency
M ./cabal-install/README -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Jan 19 09:03:58 PST 2008 Duncan Coutts
* Make the configure command take the defaults from the config file
Just like the install command has always done. This makes them consistent.
So by default that means cabal configure uses --user --prefix=$HOME/.cabal
M ./cabal-install/Hackage/Setup.hs +6
M ./cabal-install/Main.hs -2 +13
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Jan 20 06:47:54 PST 2008 Duncan Coutts
* Rename ResolvedPackage to ResolvedDependency
M ./cabal-install/Hackage/Dependency.hs -11 +11
M ./cabal-install/Hackage/Info.hs -8 +8
M ./cabal-install/Hackage/Install.hs +1
M ./cabal-install/Hackage/Types.hs -8 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Feb 9 23:07:30 PST 2008 phigley@gmail.com
* Fixed imports to correspond to the latest arrangement of Distribution.PackageDescription.
M ./cabal-install/Hackage/Config.hs -1 +1
M ./cabal-install/Hackage/Dependency.hs -2 +3
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/RepoIndex.hs -1 +1
M ./cabal-install/Main.hs -2 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Feb 10 17:21:51 PST 2008 Duncan Coutts
* Bump version and required Cabal version
Due to recent Cabal api changes
M ./cabal-install/cabal-install.cabal -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Feb 13 11:33:25 PST 2008 Duncan Coutts
* -Wall clean
M ./cabal-install/Hackage/Dependency.hs -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Feb 13 11:33:46 PST 2008 Duncan Coutts
* Use setupMessage for consistency in downloading message
M ./cabal-install/Hackage/Fetch.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Feb 15 05:11:42 PST 2008 Duncan Coutts
* Update to Cabal lib api changes
The InstalledPackageIndex replaces our Hackage.LocalIndex module
M ./cabal-install/Hackage/Dependency.hs -19 +17
M ./cabal-install/Hackage/Fetch.hs -2 +2
M ./cabal-install/Hackage/Info.hs -2 +2
M ./cabal-install/Hackage/Install.hs -3 +3
R ./cabal-install/Hackage/LocalIndex.hs
M ./cabal-install/Hackage/Setup.hs -1
M ./cabal-install/Hackage/Upgrade.hs -2 +2
M ./cabal-install/cabal-install.cabal -2 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Feb 20 03:06:37 PST 2008 Duncan Coutts
* Use a dependency graph rather than a list when installing packages
This allows us to figure out what to do when installing a single package
fails. Instead of just carrying on as if nothing had happened and then
failing several other packages which depended on the one that failed
initially we can cut those dependent packages out as soon as the first one
fails and if there is anything left that did not depend on the failed
package then we can try and carry on.
A ./cabal-install/Hackage/DepGraph.hs
M ./cabal-install/Hackage/Dependency.hs -14 +23
M ./cabal-install/Hackage/Fetch.hs -1 +3
M ./cabal-install/Hackage/Info.hs -2 +4
M ./cabal-install/Hackage/Install.hs -13 +21
M ./cabal-install/Hackage/Utils.hs +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Feb 20 13:28:48 PST 2008 Duncan Coutts
* Replace RepoIndex type with PackageIndex PkgInfo
and adapt to the minor finalisePackageDescription change
M ./cabal-install/Hackage/Dependency.hs -25 +30
M ./cabal-install/Hackage/Fetch.hs -2 +1
M ./cabal-install/Hackage/IndexUtils.hs -12 +63
M ./cabal-install/Hackage/Info.hs -2 +1
M ./cabal-install/Hackage/Install.hs -3 +2
M ./cabal-install/Hackage/List.hs -4 +5
R ./cabal-install/Hackage/RepoIndex.hs
M ./cabal-install/Hackage/Types.hs +3
M ./cabal-install/Hackage/Upgrade.hs -2 +2
M ./cabal-install/cabal-install.cabal -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 12:47:56 PST 2008 Duncan Coutts
* Make ResolvedPackage an instance of Package and PackageFixedDeps
And use that to simplify the code slightly. Also add an assertion into
removeFailed, that the first returned result is the failed package itself,
since we'll rely on this in the install code.
M ./cabal-install/Hackage/DepGraph.hs -11 +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 12:49:22 PST 2008 Duncan Coutts
* Make the install code collect some detail on the reasons for package failure
Then print out at the end why packages failed. This is a step closer to
producing detailed build reports.
M ./cabal-install/Hackage/Install.hs -33 +68
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 12:48:20 PST 2008 Lennart Kolmodin
* Naive implementation of 'cabal check'
A naive implementation of 'cabal check'.
It will list the errors and warnings as implemented by Cabal, yielding them
in groups of severity. Currently ignores verbosity levels, no additional
arguments are understood. This addresses ticket #211.
A ./cabal-install/Hackage/Check.hs
M ./cabal-install/Hackage/Setup.hs +11
M ./cabal-install/Main.hs -2 +11
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 13:30:41 PST 2008 Lennart Kolmodin
* Fix typo
M ./cabal-install/Hackage/Check.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 13:31:26 PST 2008 Lennart Kolmodin
* When a package seems ok, say so
M ./cabal-install/Hackage/Check.hs -1 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 13:32:01 PST 2008 Lennart Kolmodin
* Make the qa check return an exit code reporting the status
M ./cabal-install/Hackage/Check.hs -1 +2
M ./cabal-install/Main.hs -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 16:03:23 PST 2008 Duncan Coutts
* Use exitFailure rather than exitWith (ExitFailure 1)
and instead of exitWith ExitSuccess just return through main rather than
throwing an exception
M ./cabal-install/Main.hs -5 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Feb 22 15:57:59 PST 2008 Duncan Coutts
* Update for Package and various utils having moved modules
Several of the general util functions in Hackage.Utils are now in the main
Cabal lib in Distribution.Simple.Utils so we use those.
The Package class moved into Distribution.Package.
Use the packageId class function in more places.
M ./cabal-install/Hackage/DepGraph.hs -2 +1
M ./cabal-install/Hackage/Dependency.hs -8 +11
M ./cabal-install/Hackage/Fetch.hs -5 +5
M ./cabal-install/Hackage/IndexUtils.hs -5 +4
M ./cabal-install/Hackage/Info.hs -3 +3
M ./cabal-install/Hackage/Install.hs -3 +2
M ./cabal-install/Hackage/List.hs -7 +7
M ./cabal-install/Hackage/Types.hs -7 +5
M ./cabal-install/Hackage/Upgrade.hs -4 +4
M ./cabal-install/Hackage/Utils.hs -23 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 21 16:27:48 PST 2008 Duncan Coutts
* Handle unpacking failures slightly more gracefully
And note problem #246 about unpacking tar files with links
M ./cabal-install/Hackage/Install.hs +3
M ./cabal-install/Hackage/Tar.hs -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Feb 23 10:41:30 PST 2008 Duncan Coutts
* Print output as UTF8
M ./cabal-install/Hackage/Check.hs -5 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Feb 23 10:43:26 PST 2008 Duncan Coutts
* Depend on latest Cabal lib
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Feb 24 10:00:38 PST 2008 Duncan Coutts
* Convert to using readTextFile as appropriate
Added readBinaryFile for on use (uploading .tar.gz files)
Remove readURI as it was not being used.
M ./cabal-install/Hackage/Config.hs -4 +4
M ./cabal-install/Hackage/Fetch.hs -12
M ./cabal-install/Hackage/Upload.hs -2 +5
M ./cabal-install/Hackage/Utils.hs -4 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Feb 25 05:33:57 PST 2008 Duncan Coutts
* Read package descriptions from the index as UTF8
M ./cabal-install/Hackage/IndexUtils.hs -2 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Feb 26 18:17:06 PST 2008 Duncan Coutts
* Take nub by package id when making a dep graph
and give more detailed error messages for internal error conditions.
Fixes a problem where installing a set of packages where several depended
on the same package would give us a ResolvedDependency list containing
multiple copies of that package. The DepGraph was expecting unique packages.
Resolving package deps and generating install plans needs more thought
and better specified invariants.
M ./cabal-install/Hackage/DepGraph.hs -6 +19
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 28 02:59:14 PST 2008 Duncan Coutts
* Revert to ordinary read/writeFile for the config file
M ./cabal-install/Hackage/Config.hs -4 +4
M ./cabal-install/Hackage/Utils.hs -4 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Feb 28 11:50:34 PST 2008 Lennart Kolmodin
* Implement --dry-run for 'cabal install'
M ./cabal-install/Hackage/Install.hs -9 +36
M ./cabal-install/Hackage/Setup.hs -10 +52
M ./cabal-install/Hackage/Upgrade.hs -2 +2
M ./cabal-install/Main.hs -8 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Feb 29 03:07:10 PST 2008 Duncan Coutts
* Add --dry-run to upgrade, replacing existing info message
Also adjust the default for --dry-run to be false rather than empty.
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/Setup.hs -15 +22
M ./cabal-install/Hackage/Upgrade.hs -6 +6
M ./cabal-install/Main.hs -8 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Feb 29 06:03:00 PST 2008 Duncan Coutts
* Remove 'info' command, make --dry-run cover that feature
In -v mode info produced a detailed tree explaining the dependency
resolution. That feature has been moved into 'install --dry-run -v'.
M ./cabal-install/Hackage/Info.hs -37 +4
M ./cabal-install/Hackage/Install.hs -7 +12
M ./cabal-install/Main.hs -14
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Mar 1 12:21:17 PST 2008 Lennart Kolmodin
* Improve 'cabal list'
Make the output of 'cabal list' prettier.
$ cabal list xmonad
* xmonad
Latest version available: 0.6
Latest installed version: 0.6
Homepage: http://xmonad.org
Category: System
Synopsis: A tiling window manager
License: BSD3
* xmonad-contrib ...[snip]
Very much like the gentoo tools eix and esearch.
This targets part of ticket #235. It still does not show packages that are
installed but not available.
M ./cabal-install/Hackage/List.hs -18 +58
M ./cabal-install/Main.hs -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Mar 1 14:27:04 PST 2008 Lennart Kolmodin
* Implement --installed to 'cabal list'
Adding --installed to 'cabal list' will make it print only packages that are
installed.
M ./cabal-install/Hackage/List.hs -10 +25
M ./cabal-install/Hackage/Setup.hs -11 +42
M ./cabal-install/Main.hs -4 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Mar 2 11:54:37 PST 2008 Lennart Kolmodin
* Implement 'cabal list --simple-output'
Provides a output format that is easier to pass on to unix tools and other
scripting tools. Also works together with --installed.
M ./cabal-install/Hackage/List.hs -9 +29
M ./cabal-install/Hackage/Setup.hs -2 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Mar 2 11:56:39 PST 2008 Lennart Kolmodin
* Remove shortopt -I for --installed
M ./cabal-install/Hackage/Setup.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Mar 2 17:03:46 PST 2008 Duncan Coutts
* In 'list', also include packages that are only installed and not available
Previously we took the available packages and did an inner join with the
installed packages so we missed out packages like base which are installed
by not available. Now we get the selected installed and available package
sets and do a full outer join using a sort and merge operation.
Also use a proper data type to hold the info we print about each package.
M ./cabal-install/Hackage/List.hs -92 +142
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 3 06:00:07 PST 2008 Duncan Coutts
* Fix savedConfigToConfigFlags so the command line overrides the config
"cabal configure --global" was incorrectly passing the user prefix to setup.
M ./cabal-install/Hackage/Config.hs -22 +5
M ./cabal-install/Main.hs -8 +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 3 08:41:54 PST 2008 Duncan Coutts
* Fix fromFlag bug and use default flags for list command
M ./cabal-install/Hackage/Config.hs +10
M ./cabal-install/Hackage/Setup.hs -1 +1
M ./cabal-install/Main.hs -5 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 3 10:32:31 PST 2008 Lennart Kolmodin
* CLI completion: Add completion of packages
Add completion of packages to the commands install, list, upgrade and fetch.
Only complete packages if the user is not trying to complete a flag.
Complete with package-versions if the package name ends with a dash,
otherwise just complete with the package names.
M ./cabal-install/bash-completion/cabal -7 +108
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 3 13:39:31 PST 2008 Duncan Coutts
* Update for recent Cabal lib api and behaviour changes
Depend on latest Cabal lib version and bump our own version due to recent
feature additions and removal of the 'info' command.
M ./cabal-install/Hackage/Dependency.hs -2 +3
M ./cabal-install/Hackage/List.hs -3 +2
M ./cabal-install/cabal-install.cabal -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 4 11:42:55 PST 2008 Lennart Kolmodin
* Fix defect when unpacking tar files containing links
There were two issues;
* Unpacking links that point to files not yet unpacked
* Used the link target as absolute path, but it's relative
This patch addresses both issues, which is ticket #246.
There may still be errors if a link refer to another link which has not
been unpacked yet.
M ./cabal-install/Hackage/Tar.hs -7 +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 4 13:17:07 PST 2008 Brent Yorgey
* Hackage/List.hs: port showPackageInfo to pretty-printing combinators, improve display of packages with multi-line synopses
M ./cabal-install/Hackage/List.hs -23 +22
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 3 15:24:08 PST 2008 Duncan Coutts
* Instead of Setup.lhs use .hs like everyone else does
./cabal-install/Setup.lhs -> ./cabal-install/Setup.hs
M ./cabal-install/Setup.hs -3 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 5 07:26:41 PST 2008 Duncan Coutts
* Attempt to make things work using hugs, assume everything is installed
M ./cabal-install/Hackage/Dependency.hs -4 +20
M ./cabal-install/Hackage/Fetch.hs -1 +1
M ./cabal-install/Hackage/Install.hs -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 5 11:34:07 PST 2008 Brent Yorgey
* Hackage/List.hs: reflow paragraphs when displaying synopsis/description.
M ./cabal-install/Hackage/List.hs -2 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Mar 6 03:48:34 PST 2008 Duncan Coutts
* Use new buildOS and buildArch
M ./cabal-install/Hackage/Dependency.hs -6 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 10 16:33:46 PDT 2008 Duncan Coutts
* Make the 'upload' command more self explanatory
It tells you what to do if you don't supply any args, rather than doing
nothing and it check for simple mistakes and gives helpful error messages.
M ./cabal-install/Main.hs -1 +20
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 10 16:36:09 PDT 2008 Duncan Coutts
* Adapt to using the bundled ReadP
+1 for using the same version of the ReadP lib everywhere,
previously we would only have noticed this type error with nhc98.
M ./cabal-install/Hackage/ParseUtils.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Mar 7 11:21:59 PST 2008 Brent Yorgey
* List.hs: fix synopsis paragraph wrapping
M ./cabal-install/Hackage/List.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Mar 6 08:08:16 PST 2008 Andrea Vezzosi
* Implement CLI flag --root-cmd for 'cabal install' as in #202
It also adds the internal flag --only so we can avoid building a setup when build-type == Simple.
M ./cabal-install/Hackage/Install.hs -16 +52
M ./cabal-install/Hackage/Setup.hs -1 +26
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 12 06:53:35 PDT 2008 Duncan Coutts
* Parse filepaths in the config file the same way as in .cabal files
That is, allow quoted and unquoted paths.
M ./cabal-install/Hackage/Config.hs -7 +12
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 18 10:30:47 PDT 2008 Andrea Vezzosi
* FIX #40, now cabal sdist creates the archive using Hackage.Tar
we don't call setup sdist anymore but we use functions from Distribution.Simple.SrcDist
A ./cabal-install/Hackage/SrcDist.hs
M ./cabal-install/Hackage/Tar.hs -8 +198
M ./cabal-install/Main.hs -3 +10
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 18 10:44:23 PDT 2008 Andrea Vezzosi
* fix imports, because Dependency has moved in Cabal
M ./cabal-install/Hackage/Dependency.hs -3 +2
M ./cabal-install/Hackage/IndexUtils.hs -2 +2
M ./cabal-install/Hackage/Info.hs -2 +1
M ./cabal-install/Hackage/ParseUtils.hs -3 +3
M ./cabal-install/Hackage/Types.hs -2 +2
M ./cabal-install/Hackage/Upgrade.hs -2 +2
M ./cabal-install/Hackage/Utils.hs -2 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 18 17:06:33 PDT 2008 Duncan Coutts
* Refactor the SrcDist code in a similar way as in the Cabal lib
M ./cabal-install/Hackage/SrcDist.hs -23 +51
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 18 17:09:19 PDT 2008 Duncan Coutts
* Minor changes to the tar packing code
Use lazy bytestring when packing tar entry headers rather than strict and
then making a single chunk lazy bytestring later. The lazy bytestring pack
will only generate a single chunk for a String that short (<4k).
Use openBinaryFile rather than openFile + hSetBinaryMode.
Add a haddock module header with copyright note.
M ./cabal-install/Hackage/Tar.hs -11 +31
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 18 18:39:36 PDT 2008 Duncan Coutts
* Use relative paths when makeing tar.gz rather than changing current dir
The current directory is a global variable, we should not mutate it.
So instead, pass a base and relative path when generating tar entries.
Also change sanitizePath to be pure and use FilePath.Poisx.
M ./cabal-install/Hackage/Tar.hs -32 +40
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 18 18:52:43 PDT 2008 Duncan Coutts
* Simplify the tar code a bit more
We always know the base path for construction or extraction so don't
bother using Maybe FilePath. Also use GZip qualified.
M ./cabal-install/Hackage/Install.hs -1 +2
M ./cabal-install/Hackage/SrcDist.hs -1 +1
M ./cabal-install/Hackage/Tar.hs -25 +17
M ./cabal-install/Hackage/Update.hs -8 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 19 10:07:53 PDT 2008 Duncan Coutts
* Record and report the exceptions that cause build failure
When installing a bunch of package we have to catch exceptions since
we carry on building other packages that did not depend on the
failing package. We were recording what phase the failure was in but
not the actual exception. We now record that too and print it along
with the more general explanation of what package failed and in
which phase. It's not perfect, eg when a package fails to compile we
end up printing that the exception was "ExitFailure 1" which is not
very useful.
M ./cabal-install/Hackage/Install.hs -32 +39
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 19 10:50:52 PDT 2008 Pepe Iborra
* #223 part2: Support all the configure options in the config file
This patch takes advantage of the new OptionField structure in Distribution.Simple.Command
to provide support for all the configure command line options in the .cabal/config file.
This has a global effect on all the packages managed by cabal-install.
The ticket also mentions support for per-package sections in the config file. This patch
does not take care of that.
M ./cabal-install/Hackage/Config.hs -45 +39
M ./cabal-install/Hackage/Setup.hs -25 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 19 15:17:47 PDT 2008 Duncan Coutts
* Bump version and require latest Cabal lib version
M ./cabal-install/cabal-install.cabal -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Mar 20 08:13:22 PDT 2008 Andrea Vezzosi
* fix small bug in Hackage.Tar
The baseDir was passed instead of the full path.
M ./cabal-install/Hackage/Tar.hs -3 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Mar 24 19:32:24 PDT 2008 Duncan Coutts
* Use the new Text class all over
Mostly just changing showVersion, showPackageId to display instead
M ./cabal-install/Hackage/DepGraph.hs -5 +7
M ./cabal-install/Hackage/Fetch.hs -3 +6
M ./cabal-install/Hackage/HttpUtils.hs -2 +3
M ./cabal-install/Hackage/IndexUtils.hs -2 +3
M ./cabal-install/Hackage/Info.hs -6 +9
M ./cabal-install/Hackage/Install.hs -7 +10
M ./cabal-install/Hackage/List.hs -4 +6
M ./cabal-install/Hackage/ParseUtils.hs -6 +9
M ./cabal-install/Hackage/SrcDist.hs -2 +5
M ./cabal-install/Hackage/Types.hs -6 +8
M ./cabal-install/Hackage/Utils.hs -2 +5
M ./cabal-install/Main.hs -4 +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 26 22:34:54 PDT 2008 Duncan Coutts
* Update to recent Cabal lib changes
M ./cabal-install/Hackage/Config.hs -3 +4
M ./cabal-install/Hackage/Setup.hs -6 +7
M ./cabal-install/Hackage/SrcDist.hs -1 +1
M ./cabal-install/Main.hs -4 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Mar 29 12:44:26 PDT 2008 Duncan Coutts
* Use new showPWarning for warnings in parsing the config file
M ./cabal-install/Hackage/Config.hs -4 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Mar 29 12:45:49 PDT 2008 Duncan Coutts
* Bump version number and depend on the latest Cabal lib
M ./cabal-install/cabal-install.cabal -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Mar 29 12:56:01 PDT 2008 Duncan Coutts
tagged 0.4.6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Mar 30 12:37:10 PDT 2008 Spencer Janssen
* Add missing modules in other-modules, fixes sdist
M ./cabal-install/cabal-install.cabal +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat Apr 12 16:40:57 PDT 2008
* Half-done build reporting stuff
A ./cabal-install/Hackage/Reporting.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 13 15:39:10 PDT 2008 Duncan Coutts
* Update for change to finalizePackageDescription
M ./cabal-install/Hackage/Dependency.hs -3 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 13 15:39:40 PDT 2008 Duncan Coutts
* Relax version constraint on HTTP, seems to work with 3001.1
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 13 16:41:19 PDT 2008 Duncan Coutts
* Make ResolvedDependency an internal detail of dependency calculation
Externally we currently use a DepGraph, though we'll move to a InstallPlan.
This is a step towards making it easier to swap in different package
dependency resolution algorithms. Because we're hiding ResolvedDependency
we have to disable the extended Hackage.Info stuff for the moment.
M ./cabal-install/Hackage/Dependency.hs -12 +18
M ./cabal-install/Hackage/Fetch.hs -3 +2
M ./cabal-install/Hackage/Install.hs -11 +10
M ./cabal-install/Hackage/Types.hs -11
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 13 17:04:19 PDT 2008 Duncan Coutts
* Change resolveDependencies to take OS and Arch as parameters
Rather than using global 'constants' for the current os and arch.
M ./cabal-install/Hackage/Dependency.hs -21 +28
M ./cabal-install/Hackage/Fetch.hs -2 +6
M ./cabal-install/Hackage/Install.hs -3 +8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Apr 14 07:34:57 PDT 2008 Duncan Coutts
* Simplify install --only implementation
The install --only doesn't do any planning or build
reporting so make it completely separate so we do
not have to make up fake build plans or results.
M ./cabal-install/Hackage/Install.hs -17 +6
M ./cabal-install/Main.hs +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Apr 14 10:19:14 PDT 2008 Duncan Coutts
* Add new InstallPlan type
This is joint work with Kolmodin.
An InstallPlan records what we want to install and records the outcome
of installing packages. It has a fairly strict internal invariant which
should guarantee that each package can be configured sucessfully.
A ./cabal-install/Hackage/InstallPlan.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Apr 20 12:15:43 PDT 2008 Duncan Coutts
* Update for FlagAssignment changes
M ./cabal-install/Hackage/DepGraph.hs +2
M ./cabal-install/Hackage/Dependency.hs -4 +4
M ./cabal-install/Hackage/Install.hs -3 +4
M ./cabal-install/Hackage/InstallPlan.hs -3 +3
M ./cabal-install/Hackage/Types.hs -6 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 23 08:38:17 PDT 2008 Duncan Coutts
* Update for checkPackage change
M ./cabal-install/Hackage/Check.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Apr 24 15:41:59 PDT 2008 Duncan Coutts
* Rearange install plan checking code
Make it usable for callers that want to check
properties before constructing an InstallPlan.
M ./cabal-install/Hackage/InstallPlan.hs -51 +52
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 01:49:38 PDT 2008 Duncan Coutts
* Make the default SavedConfig contain empty rather than default ConfigFlags
We do not want to pass a load of default command line flags. We only want
to pass flags where we're overriding the defaults.
Also it's because old Cabal versions do not understand new flags.
M ./cabal-install/Hackage/Config.hs -4 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 01:52:01 PDT 2008 Duncan Coutts
* Simplify the way we derive configure, install and upgrade commands
so we do not accidentally inherit the default flags for the underlying
configure command when we in fact want the empty flags. I am beginning
to suspect that having any defaults at all was a mistake.
M ./cabal-install/Hackage/Setup.hs -8 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 03:34:12 PDT 2008 Duncan Coutts
* Add replacement SetupWrapper module
Clearer code and a wider interface to give more control.
A ./cabal-install/Hackage/SetupWrapper.hs
M ./cabal-install/cabal-install.cabal -2 +6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 04:44:48 PDT 2008 Duncan Coutts
* Fix setupWrapper bug, when no compiler was configured
M ./cabal-install/Hackage/SetupWrapper.hs -12 +13
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 04:46:04 PDT 2008 Duncan Coutts
* Convert Main to use the new SetupWrapper module
M ./cabal-install/Main.hs -22 +30
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 04:47:09 PDT 2008 Duncan Coutts
* Add a new --cabal-lib-version flag to the install command
It's used to select which version of the Cabal lib to use when
configuring, building and installing packages. It's mainly so that
we can use cabal-install to help us test that packages build ok with
both old and new versions of the Cabal library. In particular we'd
like to check every package on hackage to make sure that new Cabal
versions are not breaking packages that worked with older versions.
M ./cabal-install/Hackage/Setup.hs -15 +36
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 04:50:21 PDT 2008 Duncan Coutts
* Convert the Install module to use the new SetupWrapper
And refactor slightly to batch some of the misc parameters
together in a record rather than passing them all separately.
M ./cabal-install/Hackage/Install.hs -49 +85
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 11:09:22 PDT 2008 Duncan Coutts
* Generalise and rename PkgInfo to include local packages
Renamed to AvailablePackage since that what it is really.
Now instead of just representing packages from a remote hackage repo
it includes an alternative for a local unpacked package. In future
we should add more alternatives, eg for other local packages (ie not
just the one that's unpacked in the current dir) and for remote
packages in source control like darcs, git etc.
M ./cabal-install/Hackage/DepGraph.hs -1 +1
M ./cabal-install/Hackage/Dependency.hs -16 +18
M ./cabal-install/Hackage/Fetch.hs -7 +34
M ./cabal-install/Hackage/IndexUtils.hs -10 +12
M ./cabal-install/Hackage/Install.hs -6 +8
M ./cabal-install/Hackage/InstallPlan.hs -4 +4
M ./cabal-install/Hackage/List.hs -5 +5
M ./cabal-install/Hackage/Types.hs -31 +20
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Apr 30 12:33:51 PDT 2008 Duncan Coutts
* Remove the resolveDependenciesLocal, implement it via resolveDependencies
The local variant was for the case that we were starting from a package
description rather than a dependency to a named package. In the local
case we not only need to resolve the dependencies of the package but also
to find a flag assignment for the local package. This case crops up in
the resolver normally when we try to satisfy a dependency, we have to
pick a flag assignment for the dependency and resolve its dependencies.
It is annoying to have both entry points, especially as we want the
resolver to be plugable. So instead we define the local package as an
available package, then by resolving a single dependency on exactly the
name and version of the local package then we can get an install plan for
the local package. It also requires generalising installPkg to deal with
the local case.
M ./cabal-install/Hackage/Dependency.hs -19
M ./cabal-install/Hackage/Install.hs -13 +35
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 1 14:44:56 PDT 2008 Duncan Coutts
* Don't echo when prompting for the hackage upload password.
Fixes ticket #268. And use newtypes for the username and password,
just to be more sure we're not mixing them up with other strings.
M ./cabal-install/Hackage/Config.hs -6 +6
M ./cabal-install/Hackage/Setup.hs -4 +7
M ./cabal-install/Hackage/Types.hs -2 +2
M ./cabal-install/Hackage/Upload.hs -8 +21
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 4 12:37:22 PDT 2008 Duncan Coutts
* Update for flipped order of args for PackageIndex.insert
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/InstallPlan.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 4 12:45:30 PDT 2008 Duncan Coutts
* Add new utils, duplicates, duplicatesBy and mergeBy
M ./cabal-install/Hackage/Utils.hs +31
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 4 13:17:42 PDT 2008 Duncan Coutts
* Use the mergeBy from the Utils module
M ./cabal-install/Hackage/List.hs -17 +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 4 13:18:57 PDT 2008 Duncan Coutts
* Improve InstallPlan error checking and reporting
Instead of just reporting that a plan is invalid, produce a
detailed list of reasons why it is invalid.
This should be useful for people debugging dependency resolvers.
Also rename the complete property to closed, since the property
is about the set being closed under the dependency relation.
Also re-use the PackageIndex functions for checking the validity
conditions rather than re-implementing the checks locally.
M ./cabal-install/Hackage/InstallPlan.hs -105 +234
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon May 5 02:05:13 PDT 2008 Duncan Coutts
* Packages are only invalid if they have more than zero problems.
M ./cabal-install/Hackage/InstallPlan.hs -2 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon May 5 02:17:43 PDT 2008 Duncan Coutts
* Switch from DepGraph to InstallPlan
The dependency resolver has had to be extended in a slightly hacky
way to gather the extra information needed by an install plan. In
particular it requires the flags to use to configure each package,
the actual versions of dependencies to use and all of the
installed packages and their closure of dependencies.
However the current resolver is fairly naive and so can be easily
persuaded into producing an invalid install plan, in which case
you'll get a detailed list of reasons as to why it is invalid.
R ./cabal-install/Hackage/DepGraph.hs
M ./cabal-install/Hackage/Dependency.hs -28 +84
M ./cabal-install/Hackage/Fetch.hs -4 +7
M ./cabal-install/Hackage/Install.hs -43 +35
M ./cabal-install/cabal-install.cabal -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 06:30:22 PDT 2008 Duncan Coutts
* Add more info and debug messages at key parts of the install process
If we're in verbose mode then always print what we're going to
install, not just when the user specifies --dry-run.
M ./cabal-install/Hackage/Install.hs -2 +6
M ./cabal-install/Hackage/SetupWrapper.hs -5 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 06:32:36 PDT 2008 Duncan Coutts
* Hide the installed instance when installing the local package.
Otherwise the dependency resolver may decide to pick the installed
instance of the package but we really do want to install the local
version. So to remove that choice from the dep resolver we just
delete it from the installed package index.
M ./cabal-install/Hackage/Install.hs -3 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 16:59:05 PDT 2008 Duncan Coutts
* Minor improvements to InstallPlan documentation and error reporting
M ./cabal-install/Hackage/InstallPlan.hs -5 +16
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 17:02:09 PDT 2008 Duncan Coutts
* Check that InstallPlan dependencies respect a state relation
For example it's not allowed for installed packages to depend
on configured packages.
M ./cabal-install/Hackage/InstallPlan.hs +38
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 17:06:26 PDT 2008 Duncan Coutts
* Add a dependency graph to the InstallPlan
Uses Data.Graph and annoyingly we also need to keep functions
around for mapping between Graph.Vertex <-> PackageIdentifier
M ./cabal-install/Hackage/InstallPlan.hs -4 +24
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 17:10:06 PDT 2008 Duncan Coutts
* Add lookupConfiguredPackage helper function to InstallPlan
Simplifies implementation of completed and failed
M ./cabal-install/Hackage/InstallPlan.hs -4 +13
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 17:13:02 PDT 2008 Duncan Coutts
* Reimplement InstallPlan.failed as it was completely wrong
It was finding all the dependencies of the failed package and
marking them as failed. But of course what we have to do is find
all the packages that depend on the failed package (the reverse
dependencies) and mark them as failed. We use the reverse
dependency Graph that we saved in the InstallPlan.
M ./cabal-install/Hackage/InstallPlan.hs -19 +16
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 17:18:51 PDT 2008 Duncan Coutts
* Add an info message when resolving dependencies
It can take a while, especially with debug checks turned on.
M ./cabal-install/Hackage/Install.hs +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue May 6 17:21:03 PDT 2008 Duncan Coutts
* Hide broken installed packages when resolving dependencies
Stops us from choosing them which would always end up with an
invalid installation plan.
M ./cabal-install/Hackage/Dependency.hs -3 +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 7 08:57:25 PDT 2008 Duncan Coutts
* Move ConfiguredPackage type into Types module
It's not actually specific to the InstallPlan.
M ./cabal-install/Hackage/Install.hs -1 +1
M ./cabal-install/Hackage/InstallPlan.hs -20 +2
M ./cabal-install/Hackage/Types.hs -1 +21
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 7 11:01:08 PDT 2008 Duncan Coutts
* Refactor installLocalPackage and installRepoPackages
They share most code so pull the first and last bits out into the
top level install function. They now need 2 and 3 fewer params
respectively, which is a good sign. Rename them because they're
generating plans now rather than doing the installation directly.
M ./cabal-install/Hackage/Install.hs -59 +48
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 7 11:17:33 PDT 2008 Duncan Coutts
* Tidy planLocalPackage and planRepoPackages a bit more
M ./cabal-install/Hackage/Install.hs -47 +38
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 7 11:21:58 PDT 2008 Duncan Coutts
* executeInstallPlan now takes an installer instead of calling installPkg
Four of the executeInstallPlan param were just passed through directly
to installPkg so this decouples them a bit.
M ./cabal-install/Hackage/Install.hs -24 +19
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 8 02:26:49 PDT 2008 Duncan Coutts
* Restructure the package installing code
Previously each layer called the next layer down and therefore the
top layer had to take all of the params that the bottom layer needed
even though they were mostly or wholly unmodified on the way down.
Now each layer takes the next layer as a parameter so we do not need
to take the params that are not used directly by the current layer.
The overall stack is then built by applying each layer to the next.
M ./cabal-install/Hackage/Install.hs -59 +42
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 04:41:53 PDT 2008 Duncan Coutts
* Change InstallPlan.done and .next into .ready that returns a list
So kind of like uncons style rather than null and head.
It returns all the ready ones by lazily so it's no extra expense.
It'll allow parallel installations since all ready packages are
independent of each other. Also update callers.
M ./cabal-install/Hackage/Install.hs -16 +15
M ./cabal-install/Hackage/InstallPlan.hs -28 +24
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 07:28:07 PDT 2008 Duncan Coutts
* Change the result type of DependencyResolver
and add a wrapper that makes InstallPlans
M ./cabal-install/Hackage/Dependency.hs -8 +22
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 08:15:14 PDT 2008 Duncan Coutts
* Make the existing dep resolvers to use the DependencyResolver interface
That is the standard naive dep resolver and the bogus one that has to
make up a plan assuming that all dependencies are installed.
M ./cabal-install/Hackage/Dependency.hs -34 +46
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 08:20:07 PDT 2008 Duncan Coutts
* Swap Either args so it's Either Error Ok
Which seems to be the normal convention.
M ./cabal-install/Hackage/Dependency.hs -14 +12
M ./cabal-install/Hackage/InstallPlan.hs -3 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 09:55:09 PDT 2008 Duncan Coutts
* Split the two resolvers out of the Dependency module
It's clearer what is the generic stuff and what is specific to the
current resolver. So it should be a bit easier to swap in new ones.
A ./cabal-install/Hackage/Dependency/
M ./cabal-install/Hackage/Dependency.hs -164 +6
A ./cabal-install/Hackage/Dependency/Bogus.hs
A ./cabal-install/Hackage/Dependency/Naive.hs
M ./cabal-install/cabal-install.cabal +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 09:58:00 PDT 2008 Duncan Coutts
* Put the check back in for hideBrokenPackages
M ./cabal-install/Hackage/Dependency.hs -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 9 18:28:16 PDT 2008 Duncan Coutts
* Rewrite getUpgradableDeps so it's simpler and linear time
Also change so that instead of giving the available package with
the highest version number (where that is higher than the installed
package) it gives us a dependency on a version of the package that
is strictly greater than the one installed. This is more flexible
since when resolving we do not necessarily have to pick the very
latest version if that turns out not to be possible.
M ./cabal-install/Hackage/Dependency.hs -48 +22
M ./cabal-install/Hackage/Upgrade.hs -10 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat May 10 04:40:10 PDT 2008 Duncan Coutts
* Move dryRun out of the misc options
M ./cabal-install/Hackage/Install.hs -5 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat May 10 05:21:41 PDT 2008 Duncan Coutts
* Move printing of build failures into a separate function
M ./cabal-install/Hackage/Install.hs -28 +30
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat May 10 05:23:21 PDT 2008 Duncan Coutts
* Pull the planners out of install and pass them as parameters
M ./cabal-install/Hackage/Install.hs -8 +28
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sat May 10 11:59:20 PDT 2008 Duncan Coutts
* Move the upgrade action into the Install module
It shares most code anyway.
Also fixes ticket #260 becuase we use the right entry point now.
M ./cabal-install/Hackage/Install.hs -4 +29
R ./cabal-install/Hackage/Upgrade.hs
M ./cabal-install/Main.hs -2 +1
M ./cabal-install/cabal-install.cabal -1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun May 11 17:54:44 PDT 2008 Duncan Coutts
* Update for distPref changes
M ./cabal-install/Hackage/Install.hs -2 +5
M ./cabal-install/Hackage/SetupWrapper.hs -13 +16
M ./cabal-install/Hackage/SrcDist.hs -3 +4
M ./cabal-install/Main.hs -13 +28
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 15 17:29:00 PDT 2008 Duncan Coutts
* Update for renamed PackageIndex.delete (now .deletePackageId)
M ./cabal-install/Hackage/Dependency.hs -1 +1
M ./cabal-install/Hackage/Install.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 21 08:36:48 PDT 2008 Duncan Coutts
* Remove the silly failing resolver demo
M ./cabal-install/Hackage/Dependency.hs -6
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 21 08:37:00 PDT 2008 Duncan Coutts
* Hide any available base and ghc-prim packages from the dep resolver
Previously if the base package was available on hackage then the dep
resolver might try to upgrade it. Unfortunately that's almost
certainly technically impossible at the moment. So now since the dep
resolver does not see these available packages it cannot pick them.
This should fix ticket #174.
M ./cabal-install/Hackage/Dependency.hs -1 +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 28 14:50:49 PDT 2008 Duncan Coutts
* Move common dependency resolver types into shared module
M ./cabal-install/Hackage/Dependency.hs -9 +6
M ./cabal-install/Hackage/Dependency/Bogus.hs -12 +3
M ./cabal-install/Hackage/Dependency/Naive.hs -7 +3
A ./cabal-install/Hackage/Dependency/Types.hs
M ./cabal-install/cabal-install.cabal +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed May 28 14:58:04 PDT 2008 Duncan Coutts
* First version of the top-down package dependency resolver
This is a new dependency resolver that produces valid install plans.
It works in polynomial time however because the search space is
exponential in size it is not guaranteed to find a solution even if
one exists. It works by generating and then exploring the search
space represented as a lazy tree. It uses constraints to prune
choices and heuristics when guesses are necessary. Currently it can
generate install plans for 99% of the packages on hackage. The
remaining 6 packages should be doable with two extra tricks.
It is not finished and is not yet usable in practice.
M ./cabal-install/Hackage/Dependency.hs +2
A ./cabal-install/Hackage/Dependency/TopDown/
A ./cabal-install/Hackage/Dependency/TopDown.hs
A ./cabal-install/Hackage/Dependency/TopDown/Constraints.hs
A ./cabal-install/Hackage/Dependency/TopDown/Types.hs
M ./cabal-install/Hackage/Dependency/Types.hs +27
M ./cabal-install/cabal-install.cabal -1 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 29 03:45:02 PDT 2008 Duncan Coutts
* Bump version and depend on the latest Cabal from the 1.4 branch
M ./cabal-install/cabal-install.cabal -2 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 29 13:47:14 PDT 2008 Duncan Coutts
* Use thisPackageVersion and notThisPackageVersion from Distribution.Package
rather than the local definitions
M ./cabal-install/Hackage/Dependency/TopDown.hs -10 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu May 29 13:48:49 PDT 2008 Duncan Coutts
* Switch DependencyResolver to return Progress and String errors
rather than Either and structured error type [Dependency]. The reason
we cannot use that as a structured error type any more is because
missing dependencies is not the only failure reason. There are
several reasons, several of which are pretty complex. For now we'll
have to do with a human readable message. Perhaps we may be able to
find a common structured type that the different dep resolvers can
all agree on. I'm not hopeful however as error reporting seems to be
closely tied to the dep resolution approach.
M ./cabal-install/Hackage/Dependency.hs -8 +11
M ./cabal-install/Hackage/Dependency/Bogus.hs -3 +6
M ./cabal-install/Hackage/Dependency/Naive.hs -4 +7
M ./cabal-install/Hackage/Dependency/TopDown.hs -6 +4
M ./cabal-install/Hackage/Dependency/TopDown/Constraints.hs -2 +2
M ./cabal-install/Hackage/Dependency/Types.hs -3 +1
M ./cabal-install/Hackage/Fetch.hs -1 +1
M ./cabal-install/Hackage/Install.hs -18 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 30 09:54:45 PDT 2008 Duncan Coutts
* Add resolveDependenciesWithProgress
nd clean up header info
M ./cabal-install/Hackage/Dependency.hs -11 +22
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 30 10:01:02 PDT 2008 Duncan Coutts
* Switch install to use resolveDependenciesWithProgress
And show progress messages at verbosity level 2.
M ./cabal-install/Hackage/Fetch.hs -1
M ./cabal-install/Hackage/Install.hs -6 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 30 10:03:06 PDT 2008 Duncan Coutts
* Rearrange and tidy bits of the topdown resolver
M ./cabal-install/Hackage/Dependency/TopDown.hs -19 +30
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri May 30 11:44:37 PDT 2008 Duncan Coutts
* As a heuristic, use topological order for the order of package choices
The general case in exploring the state space is that we have a set of
choices (package names) and for each choice we have a number of
versions of that package we could pick. If there's only one version of
a package then we make that choice first. Otherwise we have to pick
some package and select one of the available versions. The question is
which package should we make a choice for first? Previously we picked
completely arbitrarily. Surprisingly this actually works pretty well.
An improvement is to pick packages in topological order. This works
better because it allows dependencies from earlier choices to
constrain our later choices.
M ./cabal-install/Hackage/Dependency/TopDown.hs -19 +86
M ./cabal-install/Hackage/Dependency/TopDown/Types.hs -3 +17
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Jun 1 17:00:18 PDT 2008 Duncan Coutts
* Implement plan improvement
The idea is to improve the plan by swapping a configured package for
an equivalent installed one. For a particular package the condition
is that the package be in a configured state, that a the same version
be already installed with the exact same dependencies and all the
packages in the plan that it depends on are in the installed state.
M ./cabal-install/Hackage/Dependency/TopDown.hs -9 +55
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Sun Jun 1 22:25:36 PDT 2008 Andrea Vezzosi
* Fix bug in passing the verbosity value when re-executing cabal
It was passing the value as another argument, distinct from the flag.
M ./cabal-install/Hackage/Install.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 04:18:16 PDT 2008 Duncan Coutts
* Support top level dependency version constraints
and error messages for when they're unsatisfiable or conflict
M ./cabal-install/Hackage/Dependency/TopDown.hs -13 +38
M ./cabal-install/Hackage/Dependency/Types.hs -1 +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 09:39:44 PDT 2008 Duncan Coutts
* Fix improvePlan so the index is updated incrementally
It's important since later packages can depend on earlier ones having
been changed from configured to pre-existing. That is afterall the
whole point of considering them in reverse toplogical order.
Also, remove duplicates in the dependencies list of installed
packages since ghc-pkg does not currently prevent duplicates in (eg
multiple depends on the same version of base). See ghc bug #2230.
M ./cabal-install/Hackage/Dependency/TopDown.hs -8 +9
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 11:24:10 PDT 2008 Duncan Coutts
* Change the DependencyResolver type to take a per-package version pref
And add a few global package version pref policies and use them in
ordinary install and upgrade. For install we use a policy that says
that we prefer the latest version of a package that we specifically
request and prefer the installed version of any other package. For
upgrade we simple always prefer the latest version. One can imageine
other policies where we prefer the latest version for only some
interesting subset of packages and installed otherwise.
No resolvers actually make use of this preference yet.
M ./cabal-install/Hackage/Dependency.hs -11 +60
M ./cabal-install/Hackage/Dependency/Bogus.hs -1 +1
M ./cabal-install/Hackage/Dependency/Naive.hs -1 +1
M ./cabal-install/Hackage/Dependency/TopDown.hs -3 +5
M ./cabal-install/Hackage/Dependency/TopDown/Types.hs -2
M ./cabal-install/Hackage/Dependency/Types.hs +13
M ./cabal-install/Hackage/Fetch.hs -3 +4
M ./cabal-install/Hackage/Install.hs -4 +7
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 11:32:43 PDT 2008 Duncan Coutts
* Make use of the package version preference in the top-down resolver
M ./cabal-install/Hackage/Dependency/TopDown.hs -13 +22
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 17:23:37 PDT 2008 Duncan Coutts
* Make the 'upgrade' command take optional deps
Up to now 'upgrade' took no args and tried to upgrade all installed
packages to the latest versions. It retains that mode but also has
a new mode rather like 'cabal install'. The difference is that with
$ cabal install foo
it means install latest version of foo but otherwise prefer the
installed versions of deps of foo, while
$ cabal upgrade foo
means install the latest version of foo and also the latest
versions of all the dependencies of foo.
M ./cabal-install/Hackage/Install.hs -23 +22
M ./cabal-install/Main.hs -2 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 17:45:55 PDT 2008 Duncan Coutts
* Switch the defaultResolver to the new topDownResolver
Time for wider testing.
M ./cabal-install/Hackage/Dependency.hs -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 17:47:02 PDT 2008 Duncan Coutts
* Bump version number to help with bug reports
The new resolver is a significant change in behavior so it's
useful to know when people report problems.
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Mon Jun 2 17:50:57 PDT 2008 Duncan Coutts
tagged 0.4.8
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jun 3 08:18:44 PDT 2008 Duncan Coutts
* Don't include the default repo when loading the config file
So we don't end up downloading the index from hackage twice.
M ./cabal-install/Hackage/Config.hs -1 +2
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jun 3 10:16:46 PDT 2008 Duncan Coutts
* Check the InstallPlan invariant on updates and not on reads
M ./cabal-install/Hackage/InstallPlan.hs -8 +11
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jun 3 10:17:21 PDT 2008 Duncan Coutts
* Update the README file
M ./cabal-install/README -33 +24
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jun 3 10:18:43 PDT 2008 Duncan Coutts
* Remove obsolete TODO
R ./cabal-install/TODO
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jun 3 10:20:06 PDT 2008 Duncan Coutts
* Update copyright dates and holders in LICENSE file
M ./cabal-install/LICENSE -2 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Jun 3 11:07:33 PDT 2008 Duncan Coutts
* Update synopsis and description
M ./cabal-install/cabal-install.cabal -5 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Jun 4 03:00:33 PDT 2008 Duncan Coutts
* Turn on assertion checking even in -O builds
Although it is expensive, we want to catch problems early.
M ./cabal-install/cabal-install.cabal -1 +3
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Jun 4 03:10:10 PDT 2008 Duncan Coutts
* Failed packages can still depend on configured packages
This is because a package can depend on several packages and if one
of the deps fail then it fails but it still depend on the others
that did not fail. This fixes an assertion failure in larger builds.
M ./cabal-install/Hackage/InstallPlan.hs +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Jun 4 05:52:17 PDT 2008 Duncan Coutts
* Fix for marking reverse deps of failed packages
The reverse deps may have already failed due to depending on another
failed package. So do not assume all reverse deps are in the
configured state. If they are in the failed state then ignore them.
M ./cabal-install/Hackage/InstallPlan.hs -4 +13
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Jun 4 17:36:56 PDT 2008 Duncan Coutts
* When marking failed reverse deps, don't include the package itself
Otherwise we end up saying packages failed because they depend
on themselves which failed to install, which is silly.
M ./cabal-install/Hackage/InstallPlan.hs +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Thu Jun 5 17:32:15 PDT 2008 Duncan Coutts
* Rearrange setup wrapper to know the cabal lib version
It is important to know which version of the Cabal lib the setup
script has been built with because it affects what flags we can pass
to it. So we now store the version in dist/setup/setup.version.
If the version number changes then we rebuild the setup binary.
M ./cabal-install/Hackage/SetupWrapper.hs -80 +111
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Fri Jun 6 02:25:03 PDT 2008 Duncan Coutts
* Filter the configure flags based on the Cabal lib version
Allows us to use cabal-install to build packages where we build the
Setup.hs script using an older version of the Cabal library.
This is important for packages that claim to need an older version
and it's also pretty useful for testing.
M ./cabal-install/Hackage/Install.hs -7 +8
M ./cabal-install/Hackage/Setup.hs -2 +9
M ./cabal-install/Hackage/SetupWrapper.hs -4 +4
M ./cabal-install/Main.hs -2 +3
View patch online: