patch applied (cabal): "TAG cabal-fork" and 751 others
Sat Jun 18 05:47:28 PDT 2011 Ganesh Sittampalam <ganesh@earth.li> 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 <ganesh@earth.li> * 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 <ganesh@earth.li> * 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 <mnislaih@gmail.com> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <ross@soi.city.ac.uk> * 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 <mnislaih@gmail.com> * 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 <mnislaih@gmail.com> * 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 <mnislaih@gmail.com> * 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 <mnislaih@gmail.com> * 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 <mnislaih@gmail.com> * 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 <sjanssen@cse.unl.edu> * 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 <duncan.coutts@worc.ox.ac.uk> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <lemmih@gmail.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * 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 <dons@galois.com> * -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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <kolmodin@gentoo.org> * 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 <jim@sdf-eu.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * -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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <kolmodin@gentoo.org> * 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 <kolmodin@gentoo.org> * 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 <kolmodin@gentoo.org> * 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 <kolmodin@gentoo.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <kolmodin@gentoo.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <kolmodin@gentoo.org> * 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 <kolmodin@gentoo.org> * 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 <kolmodin@gentoo.org> * 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 <kolmodin@gentoo.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <kolmodin@gentoo.org> * 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 <duncan@haskell.org> * 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 <kolmodin@gentoo.org> * 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 <byorgey@gmail.com> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <byorgey@gmail.com> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <byorgey@gmail.com> * 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 <sanzhiyan@gmail.com> * 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 <duncan@haskell.org> * 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 <sanzhiyan@gmail.com> * 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 <sanzhiyan@gmail.com> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <mnislaih@gmail.com> * #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 <duncan@haskell.org> * 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 <sanzhiyan@gmail.com> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> 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 <sjanssen@cse.unl.edu> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <sanzhiyan@gmail.com> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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 <duncan@haskell.org> * 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: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jun 6 06:55:46 PDT 2008 Duncan Coutts <duncan@haskell.org> * Adapt to changes in Cabal library 1.4 branch M ./cabal-install/Hackage/Check.hs -1 +1 M ./cabal-install/Hackage/Config.hs -2 +1 M ./cabal-install/Hackage/IndexUtils.hs -1 +4 M ./cabal-install/Hackage/Install.hs -2 +2 M ./cabal-install/Hackage/SetupWrapper.hs -3 +1 M ./cabal-install/Hackage/SrcDist.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 Jun 6 07:39:18 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix haddock markup M ./cabal-install/Hackage/Dependency/TopDown/Constraints.hs -2 +2 M ./cabal-install/Hackage/Dependency/TopDown/Types.hs -4 +4 M ./cabal-install/Hackage/Dependency/Types.hs -1 +1 M ./cabal-install/Hackage/Tar.hs -1 +1 M ./cabal-install/Hackage/Types.hs -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jun 6 08:28:40 PDT 2008 Duncan Coutts <duncan@haskell.org> * trivial doc improvement and unused name fix M ./cabal-install/Hackage/InstallPlan.hs -2 +2 M ./cabal-install/Hackage/Types.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jun 6 08:49:39 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bring the reporting module slightly closer to reality M ./cabal-install/Hackage/Install.hs +3 M ./cabal-install/Hackage/Reporting.hs -37 +64 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jun 6 08:57:46 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump version number 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 Jun 6 09:57:04 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add Hackage.Reporting to other-modules 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 Jun 6 09:57:46 PDT 2008 Duncan Coutts <duncan@haskell.org> tagged 0.4.9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Jun 7 07:39:13 PDT 2008 Duncan Coutts <duncan@haskell.org> * Only inspect the needed parts of the installed and available indexes The available package index is loaded lazily so if we can avoid forcing all the packages then we can save a huge amount of slow text parsing. So select out the maximal subset of the index that we could ever need based on the names of the packages we want to install. For the common case of installing just one or two packages this cuts down the number of packages we look at by a couple orders of magnitude. This does not help with the installed index which is read strictly, though most people do not (yet) have hundreds of installed packages, so that's less of an immediate problem. M ./cabal-install/Hackage/Dependency/TopDown.hs -4 +42 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Jun 7 11:26:00 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use a smarter preference when picking a Cabal lib to build Setup.hs Instead of just using the latest version we use the best version according to the following preferences in priority order: - the same version as cabal-install was itself built with - the same major version number as cabal-install was built with - a stable version of Cabal (even second digit of major number) - the latest version M ./cabal-install/Hackage/SetupWrapper.hs -3 +16 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jun 8 05:17:54 PDT 2008 Duncan Coutts <duncan@haskell.org> * First cut at generating build reports M ./cabal-install/Hackage/Config.hs +5 M ./cabal-install/Hackage/Install.hs -10 +4 M ./cabal-install/Hackage/InstallPlan.hs +5 M ./cabal-install/Hackage/Reporting.hs -62 +114 M ./cabal-install/Hackage/Types.hs +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jun 8 05:45:22 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use proper URI type rather than String M ./cabal-install/Hackage/Config.hs -7 +14 M ./cabal-install/Hackage/Fetch.hs -24 +20 M ./cabal-install/Hackage/Reporting.hs -1 +1 M ./cabal-install/Hackage/Types.hs -4 +5 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... Sun Jun 8 06:12:27 PDT 2008 Duncan Coutts <duncan@haskell.org> * Include the hackage server in the build report This is so that we remember which server to send the reports to. This is pretty important if you're using a private as well as a public hackage server. M ./cabal-install/Hackage/Reporting.hs -10 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 9 13:07:56 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use a readable external formar for build reports M ./cabal-install/Hackage/Reporting.hs -30 +148 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 9 18:37:04 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix parsing of build reports and add a function to parse a whole logfile of reports M ./cabal-install/Hackage/Reporting.hs -4 +19 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 9 18:40:11 PDT 2008 Duncan Coutts <duncan@haskell.org> * Put build-reports into per-server dirs Don't bother putting the server url into each report since we do not want to upload that information anyway. M ./cabal-install/Hackage/Config.hs -5 +1 M ./cabal-install/Hackage/Reporting.hs -31 +29 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jun 10 10:10:33 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix printing of flags in build reports M ./cabal-install/Hackage/Reporting.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jun 10 16:46:54 PDT 2008 Duncan Coutts <duncan@haskell.org> * Put the build client it into the build reports M ./cabal-install/Hackage/Reporting.hs -1 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jun 10 16:50:24 PDT 2008 Duncan Coutts <duncan@haskell.org> * Put the configurations flags into each UnresolvedDependency We don't actually have per-package flags yet. All -f flags on the install/upgrade command line apply to every paclage. M ./cabal-install/Hackage/Setup.hs -7 +6 M ./cabal-install/Main.hs -3 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jun 10 16:52:12 PDT 2008 Duncan Coutts <duncan@haskell.org> * Take the the flag assignment into account in the resolver so it now actually works to say: $ cabal install foo -fbar M ./cabal-install/Hackage/Dependency/TopDown.hs -16 +25 M ./cabal-install/Hackage/Dependency/TopDown/Types.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 12 10:50:40 PDT 2008 Duncan Coutts <duncan@haskell.org> * Put upper bounds on all the build-depends M ./cabal-install/cabal-install.cabal -5 +14 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 12 11:11:22 PDT 2008 Duncan Coutts <duncan@haskell.org> * Update to minor change in Cabal-1.4 and fix a warning. M ./cabal-install/Hackage/Dependency.hs -1 +1 M ./cabal-install/Hackage/SrcDist.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 12 12:07:02 PDT 2008 Duncan Coutts <duncan@haskell.org> * Include the bash-completion code in the tarball 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 Jun 12 12:07:18 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump the version to 0.5.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... Thu Jun 12 12:29:43 PDT 2008 Duncan Coutts <duncan@haskell.org> tagged 0.5.0 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jun 13 11:54:21 PDT 2008 Duncan Coutts <duncan@haskell.org> * The update command doesn't take any extra args 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... Mon Jun 16 10:03:12 PDT 2008 Duncan Coutts <duncan@haskell.org> * Try and pick up the http proxy on windows correctly Takes account of the ProxyEnabled reg key Allow proxy uris that lack the http:// uri schema. This should really be moved into the HTTP package. M ./cabal-install/Hackage/HttpUtils.hs -20 +60 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 16 10:12:55 PDT 2008 Duncan Coutts <duncan@haskell.org> * Move getAvailablePackages into IndexUtils module M ./cabal-install/Hackage/Fetch.hs -3 +3 M ./cabal-install/Hackage/IndexUtils.hs -2 +12 M ./cabal-install/Hackage/Install.hs -3 +3 M ./cabal-install/Hackage/List.hs -3 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 16 10:32:53 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use standard thisPackageVersion rather than inlined definition M ./cabal-install/Hackage/Install.hs -5 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 16 10:55:11 PDT 2008 Duncan Coutts <duncan@haskell.org> * Overhaul the bogus dependency resolver so it works again The bogusResolver is used for compilers like hugs and nhc98 where we do not know what packages are already installed. We do it by altering the descriptions of the packages we're going to install to remove all of their dependencies. Doing this gives us a valid install plan. We rely on hope to minimise the difference between this install plan and reality. M ./cabal-install/Hackage/Dependency/Bogus.hs -24 +60 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 16 15:38:47 PDT 2008 Duncan Coutts <duncan@haskell.org> * Default to global installs on Windows User installs by default elsewhere. Note that this default only affects new config files. Existing windows users will need to change their config file or delete it and let it be re-created. M ./cabal-install/Hackage/Config.hs -9 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jun 17 08:40:00 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump the version to 0.5.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... Tue Jun 17 08:40:34 PDT 2008 Duncan Coutts <duncan@haskell.org> tagged 0.5.1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jun 18 13:17:37 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix the upload command message about the location of the config file M ./cabal-install/Hackage/Setup.hs -2 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 19 16:33:41 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add initial build logging, based on reporting code M ./cabal-install/Hackage/Config.hs +1 M ./cabal-install/Hackage/Install.hs +3 A ./cabal-install/Hackage/Logging.hs View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jun 23 04:33:15 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix for when user supplies incorrect upload username/passwd Should now return a proper error rather than an internal error from the HTTP library. M ./cabal-install/Hackage/Upload.hs -3 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jul 25 15:37:40 PDT 2008 gwern0@gmail.com * cabal-install.cabal: fix build-from-sdist failure 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... Wed Jul 30 02:54:33 PDT 2008 Duncan Coutts <duncan@haskell.org> * Move modules under Distribution.Client And tidy some imports slightly ./cabal-install/Hackage -> ./cabal-install/Distribution/Client A ./cabal-install/Distribution/ M ./cabal-install/Distribution/Client/Check.hs -2 +2 M ./cabal-install/Distribution/Client/Clean.hs -6 +6 M ./cabal-install/Distribution/Client/Config.hs -5 +5 M ./cabal-install/Distribution/Client/Dependency.hs -10 +10 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -5 +5 M ./cabal-install/Distribution/Client/Dependency/Naive.hs -7 +7 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -9 +9 M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -4 +4 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -3 +3 M ./cabal-install/Distribution/Client/Dependency/Types.hs -4 +4 M ./cabal-install/Distribution/Client/Fetch.hs -7 +7 M ./cabal-install/Distribution/Client/HttpUtils.hs -3 +4 M ./cabal-install/Distribution/Client/IndexUtils.hs -5 +6 M ./cabal-install/Distribution/Client/Info.hs -5 +5 M ./cabal-install/Distribution/Client/Install.hs -15 +15 M ./cabal-install/Distribution/Client/InstallPlan.hs -4 +4 M ./cabal-install/Distribution/Client/List.hs -6 +6 M ./cabal-install/Distribution/Client/Logging.hs -9 +9 M ./cabal-install/Distribution/Client/ParseUtils.hs -1 +1 M ./cabal-install/Distribution/Client/Reporting.hs -7 +7 M ./cabal-install/Distribution/Client/Setup.hs -4 +4 M ./cabal-install/Distribution/Client/SetupWrapper.hs -2 +2 M ./cabal-install/Distribution/Client/SrcDist.hs -3 +3 M ./cabal-install/Distribution/Client/Tar.hs -8 +9 M ./cabal-install/Distribution/Client/Types.hs -2 +2 M ./cabal-install/Distribution/Client/Update.hs -4 +4 M ./cabal-install/Distribution/Client/Upload.hs -5 +6 M ./cabal-install/Distribution/Client/Utils.hs -1 +1 M ./cabal-install/Main.hs -16 +18 M ./cabal-install/cabal-install.cabal -34 +34 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 05:48:51 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add support to SetupWrapper for logging setup output to a handle or for using a diiferent initial working directory. We already need to use a different working dir and this would allow us to spawn multiple setup processes for parallel builds each with their own working dir. Also, we want to be able to capture the output of builds. At the moment our internal logging framework is not capable of redirecting, but if we launch a process we redirect its output to a file. This should be useful for build reporting where we want logs for each individual package. M ./cabal-install/Distribution/Client/Install.hs -1 +3 M ./cabal-install/Distribution/Client/SetupWrapper.hs -4 +20 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 05:55:55 PDT 2008 Duncan Coutts <duncan@haskell.org> * Move the install command options so they're not toplevel decls Except for optionDryRun which is shared with another command. M ./cabal-install/Distribution/Client/Setup.hs -37 +28 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 06:16:55 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use the external setup method when logging the output For the internal method, change to the right working dir if necessary. M ./cabal-install/Distribution/Client/SetupWrapper.hs -10 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 06:20:04 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use the setupWrapper useWorkingDir feature in Install Rather than calling inDir directly. M ./cabal-install/Distribution/Client/Install.hs -4 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 07:31:49 PDT 2008 Duncan Coutts <duncan@haskell.org> * When launching setup in another dir we must use an adjusted path The path to the binary we're running must be accessable from that other directory. The fix is to use currentDir </> setup M ./cabal-install/Distribution/Client/SetupWrapper.hs -2 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 11:33:09 PDT 2008 Duncan Coutts <duncan@haskell.org> * Make the upgrade command take all the install command flags M ./cabal-install/Distribution/Client/Setup.hs -11 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jul 30 11:33:44 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add install --log-builds flag Eg can use cabal install foo --log-builds='$pkgid-$compiler.log' and the build log for each package will written to a separate file. If an existing file is given then the log is appended. This or something like it should help in future with build reporting of the non-anonymous kind. M ./cabal-install/Distribution/Client/Install.hs -6 +28 M ./cabal-install/Distribution/Client/Setup.hs -3 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 1 18:39:57 PDT 2008 Duncan Coutts <duncan@haskell.org> * Remove the unused module Distribution.Client.Clean R ./cabal-install/Distribution/Client/Clean.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 Aug 1 18:41:07 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix changing working dir when calling external setup but not logging Now uses a single code path for both modes. M ./cabal-install/Distribution/Client/SetupWrapper.hs -12 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 1 18:42:26 PDT 2008 Duncan Coutts <duncan@haskell.org> * Pass dist dir and verbosity flags to build and install phases M ./cabal-install/Distribution/Client/Install.hs -3 +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 1 19:56:54 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add feature to symlink binaries into another dir This covers the major part of ticket #289. M ./cabal-install/Distribution/Client/Install.hs +2 A ./cabal-install/Distribution/Client/InstallSymlink.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 Aug 1 19:57:30 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add a symlink-bindir field to the config file and link it up with the symlink feature code. M ./cabal-install/Distribution/Client/Config.hs -1 +7 M ./cabal-install/Distribution/Client/Setup.hs -3 +6 M ./cabal-install/Main.hs -2 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 1 20:07:23 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump minor version number 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... Sat Aug 2 06:38:55 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix generating haddock docs M ./cabal-install/Distribution/Client/Config.hs -2 +2 M ./cabal-install/Distribution/Client/Logging.hs -3 +3 M ./cabal-install/Distribution/Client/Reporting.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... Sat Aug 2 06:39:22 PDT 2008 Duncan Coutts <duncan@haskell.org> * Warn about symlinks that could not be created M ./cabal-install/Distribution/Client/Install.hs -2 +30 M ./cabal-install/Distribution/Client/InstallSymlink.hs -13 +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Aug 2 11:07:50 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add a LocalRepo kind of Repo and refactor the Fetch code This is the groundwork needed to support local repositories, that is ones acessable via the local filesystem and without a corresponding download cache. They use the same format/layout as the download cache of a remote repo. M ./cabal-install/Distribution/Client/Config.hs -5 +6 M ./cabal-install/Distribution/Client/Fetch.hs -102 +111 M ./cabal-install/Distribution/Client/IndexUtils.hs -1 +1 M ./cabal-install/Distribution/Client/Install.hs -5 +5 M ./cabal-install/Distribution/Client/Reporting.hs -9 +16 M ./cabal-install/Distribution/Client/Types.hs -10 +9 M ./cabal-install/Distribution/Client/Update.hs -6 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Aug 2 17:20:45 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use the given working dir when preparing to call setup I introduced a subtle bug with paths when I stopped using inDir outside of setupWrapper. It was using the current dir to find Setup.hs rather than the target dir. That ofen works because there's a Setup.hs in the local dir. I think it's now fixed to always use paths relative to workingDir. As before, it invokes the setup binary giving it the new working dir. M ./cabal-install/Distribution/Client/SetupWrapper.hs -7 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 5 17:44:49 PDT 2008 Duncan Coutts <duncan@haskell.org> * Shrink the size of the ParseUtils module Really it should be eleminated entirely. M ./cabal-install/Distribution/Client/Config.hs -21 +27 M ./cabal-install/Distribution/Client/ParseUtils.hs -56 +11 M ./cabal-install/Distribution/Client/Setup.hs -21 +28 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 5 18:11:14 PDT 2008 Duncan Coutts <duncan@haskell.org> * Remove showFields use the pre-existing ppFields M ./cabal-install/Distribution/Client/Config.hs -5 +5 M ./cabal-install/Distribution/Client/Logging.hs -4 +4 M ./cabal-install/Distribution/Client/ParseUtils.hs -6 M ./cabal-install/Distribution/Client/Reporting.hs -4 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Aug 6 05:53:18 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use a local copy of the new parseFields from Cabal lib We can remove the local copy once we switch to the next Cabal version. In the mean time, the code is at least sane and consistent between libs. M ./cabal-install/Distribution/Client/Config.hs -2 +4 M ./cabal-install/Distribution/Client/Logging.hs -2 +2 M ./cabal-install/Distribution/Client/ParseUtils.hs -23 +20 M ./cabal-install/Distribution/Client/Reporting.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Aug 6 06:30:41 PDT 2008 Duncan Coutts <duncan@haskell.org> * Don't require config file fields to have "" for empty values And make the parsing slightly nicer. M ./cabal-install/Distribution/Client/Config.hs -19 +19 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 5 10:36:32 PDT 2008 Duncan Coutts <duncan@haskell.org> * Refactor BuildResult type and related types Split BuildResult into Either BuildFailure BuildSuccess Make BuildSuccess contain info for docs and tests. Make PlanPackage use BuildSuccess and BuildFailure directly rather than being parameterised by any build result type. This has a knock on effect on lots of other types which were parameterised just because PlanPackage was. M ./cabal-install/Distribution/Client/Dependency.hs -5 +5 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -1 +1 M ./cabal-install/Distribution/Client/Dependency/Naive.hs -1 +1 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -5 +5 M ./cabal-install/Distribution/Client/Dependency/Types.hs -8 +8 M ./cabal-install/Distribution/Client/Install.hs -27 +33 M ./cabal-install/Distribution/Client/InstallPlan.hs -48 +49 M ./cabal-install/Distribution/Client/InstallSymlink.hs -5 +4 M ./cabal-install/Distribution/Client/Logging.hs -17 +30 M ./cabal-install/Distribution/Client/Reporting.hs -16 +29 M ./cabal-install/Distribution/Client/Types.hs -6 +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 5 11:05:06 PDT 2008 Duncan Coutts <duncan@haskell.org> * Initial support for building haddock docs No flag to turn it on/off yet. M ./cabal-install/Distribution/Client/Install.hs -10 +31 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Aug 6 07:26:56 PDT 2008 Duncan Coutts <duncan@haskell.org> * Rearrange the symlinking code slightly Will make it easier to create the bin dir, if that's what we want to do. M ./cabal-install/Distribution/Client/InstallSymlink.hs -16 +23 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Aug 6 10:57:56 PDT 2008 Duncan Coutts <duncan@haskell.org> * Ignore local files when compiling Setup.hs M ./cabal-install/Distribution/Client/SetupWrapper.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Aug 6 10:58:34 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add --enable/disable-documentation flag. This addresses most of ticket #206. M ./cabal-install/Distribution/Client/Install.hs -3 +7 M ./cabal-install/Distribution/Client/Setup.hs -3 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 7 11:39:45 PDT 2008 Duncan Coutts <duncan@haskell.org> * Rearrange the BuildReport code ./cabal-install/Distribution/Client/Reporting.hs -> ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs A ./cabal-install/Distribution/Client/BuildReports/ M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs -108 +44 A ./cabal-install/Distribution/Client/BuildReports/Storage.hs M ./cabal-install/Distribution/Client/Install.hs -6 +6 R ./cabal-install/Distribution/Client/Logging.hs View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 7 12:03:11 PDT 2008 Lemmih <lemmih@gmail.com> * Simple upload support for build reports. A ./cabal-install/Distribution/Client/BuildReports/Upload.hs View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 7 15:14:24 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix up other-modules list M ./cabal-install/cabal-install.cabal -2 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 7 15:14:35 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix BuildReport parser M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs -10 +43 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 05:38:21 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add defaultLogsDir util and use it for storing build reports M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -3 +3 M ./cabal-install/Distribution/Client/Config.hs +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 05:39:20 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add --build-reports install flag M ./cabal-install/Distribution/Client/Setup.hs +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 05:54:01 PDT 2008 Duncan Coutts <duncan@haskell.org> * Implement --build-reports flag M ./cabal-install/Distribution/Client/Install.hs -13 +33 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 07:58:29 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add command line UI for 'report' action. M ./cabal-install/Distribution/Client/Setup.hs -1 +12 M ./cabal-install/Main.hs -1 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:06:17 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add verbosity flag to report command M ./cabal-install/Distribution/Client/Setup.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:07:06 PDT 2008 Lemmih <lemmih@gmail.com> * Store detailed build logs. M ./cabal-install/Distribution/Client/Install.hs -4 +20 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:07:37 PDT 2008 Lemmih <lemmih@gmail.com> * First stab at uploading the detailed logs. M ./cabal-install/Distribution/Client/Upload.hs -4 +31 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:19:23 PDT 2008 Duncan Coutts <duncan@haskell.org> * Create the logs dir M ./cabal-install/Distribution/Client/BuildReports/Storage.hs +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:19:57 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix the urls for the new hackage server M ./cabal-install/Distribution/Client/Fetch.hs -6 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:26:12 PDT 2008 Lemmih <lemmih@gmail.com> * Only look at .log files. M ./cabal-install/Distribution/Client/Upload.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:32:27 PDT 2008 Lemmih <lemmih@gmail.com> * Use correct uri to /buildreports M ./cabal-install/Distribution/Client/BuildReports/Upload.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 8 08:32:44 PDT 2008 Lemmih <lemmih@gmail.com> * silly types. M ./cabal-install/Distribution/Client/Upload.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Aug 9 17:04:46 PDT 2008 Lemmih <lemmih@gmail.com> * Support legacy download and upload urls. M ./cabal-install/Distribution/Client/Fetch.hs -2 +10 M ./cabal-install/Distribution/Client/HttpUtils.hs -1 +11 M ./cabal-install/Distribution/Client/Upload.hs -9 +13 M ./cabal-install/Main.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Aug 10 03:36:07 PDT 2008 Lemmih <lemmih@gmail.com> * Print upload error messages if they are in text/plain. M ./cabal-install/Distribution/Client/Upload.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Aug 10 14:17:05 PDT 2008 Duncan Coutts <duncan@haskell.org> * Remove most warnings from BuildReports.Upload module M ./cabal-install/Distribution/Client/BuildReports/Upload.hs -17 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 12 09:11:53 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use a more specific type in one place in SetupWrapper It doesn't need access to the whole Packagedescription, it only needs the the PackageIdentifier. M ./cabal-install/Distribution/Client/SetupWrapper.hs -3 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 12 09:21:43 PDT 2008 Duncan Coutts <duncan@haskell.org> * Regig install pipeline, pass the PackageDescription Rather than the GenericPackageDescription. M ./cabal-install/Distribution/Client/Install.hs -20 +32 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 12 14:29:41 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix building on Windows I hateses #ifdefs M ./cabal-install/Distribution/Client/InstallSymlink.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 12 14:30:30 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add missing module to other-modules 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 Aug 12 14:31:31 PDT 2008 Duncan Coutts <duncan@haskell.org> * Clean up some warnings M ./cabal-install/Distribution/Client/BuildReports/Upload.hs +1 M ./cabal-install/Distribution/Client/Upload.hs -9 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 12 14:51:38 PDT 2008 Duncan Coutts <duncan@haskell.org> * Allow cabal-install to re-install itself on Windows This is a fairly heavyweight solution, but then it's quite a nasty problem. What we do is when we notice that we're about to install something in place of our own .exe file, we move our exe file out of the way (but in the same dir). Then after we've installed the new exe we call it and ask it to delete the old file (so we do not litter the bin dir with lots of old versions). That requires synchronising between the old and new programs and for the new program to understand a command to do the syncing and deleting of the old program. Lots of Win32 FFI imports. :-( On the plus side it seems to work and is transparent to the user and the rest of cabal-install. In particular the actual file-installation code (which is burried deep within Cabal) does not need to know about the special case of installing over our own exe file. M ./cabal-install/Distribution/Client/Install.hs -10 +55 A ./cabal-install/Distribution/Client/Win32SelfUpgrade.hs M ./cabal-install/Main.hs -2 +16 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 Aug 12 15:27:10 PDT 2008 Duncan Coutts <duncan@haskell.org> * Don't fail if we don't sync with the child It just means we leave a temp file around in the bin dir. M ./cabal-install/Distribution/Client/Win32SelfUpgrade.hs -3 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 14 11:02:01 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fetch packages even if they happen to already be installed Though obviously not if they have already been fetched. This lets people study the source for core packages that came with their compiler say, so they did not get have the sources downloaded via cabal-install. Fixes ticket #297. M ./cabal-install/Distribution/Client/Fetch.hs -6 +28 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 14 11:34:45 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add cabal install --reinstall flag to force reinstall of package where we have the exact same version already installed. Ordinarily we would say that there is nothing to do as the exact same package version is already installed. There are some cases where you might want to do this, eg to rebuild with different compiler options, or adding/removing components (since we do not track those indifidually yet, eg docs, profiling libs). M ./cabal-install/Distribution/Client/Install.hs -6 +17 M ./cabal-install/Distribution/Client/Setup.hs +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 14 11:48:37 PDT 2008 Duncan Coutts <duncan@haskell.org> * Only look for detailed build reports if we were generating them M ./cabal-install/Distribution/Client/Install.hs -3 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 14 11:53:04 PDT 2008 Duncan Coutts <duncan@haskell.org> * Always print the message about nothing to install Not just if the user specified -v or --dry-run. Otherwise it's rather confusing. Also clarify that the reason there is nothing to install is because the latest versions are installed already. Also mention the --reinstall flag: Resolving dependencies... No packages to be installed. All the requested packages are already installed. If you want to reinstall anyway then use the --reinstall flag. M ./cabal-install/Distribution/Client/Install.hs -1 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 15 07:27:35 PDT 2008 Duncan Coutts <duncan@haskell.org> * allow tilde in hackage server URIs report and fix from Nicolas Frisby <nicolas.frisby@gmail.com> (code had changed slightly so the original patch didn't apply cleanly) M ./cabal-install/Distribution/Client/Config.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Aug 21 14:05:55 PDT 2008 Duncan Coutts <duncan@haskell.org> * Rearrange config settings and global command line settings The intention here is to have the config file content and parser be derivied from the command line types and flags. Now instead of having a saved config type that contains additional information to that kept in command line parameters we now put all the information in the command line settings type and make the saved config just the aggregation of the settings for various key commands like configure, install, upload. There's also an extended GlobalFlags type with the things like repos, cache dir etc. When we generate the initial config file we put in commented out versions of all (non-deprecated) valid fields, along with their default values. The aim is to make the config file self-documenting. M ./cabal-install/Distribution/Client/Config.hs -223 +262 R ./cabal-install/Distribution/Client/ParseUtils.hs M ./cabal-install/Distribution/Client/Setup.hs -27 +182 M ./cabal-install/Main.hs -108 +106 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 Aug 21 18:57:02 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add back separate user and global sets of install dirs The user install setting selects between the two sets of dirs. At the moment it's just the "user-" and "global-" prefixed field names to support existing config files. M ./cabal-install/Distribution/Client/Config.hs -46 +152 M ./cabal-install/Main.hs -5 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 05:00:59 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add sections for user/global install-dirs to the config file So it looks like: install-dirs user prefix: /home/username/.cabal ... Rather than using user-prefix, global-prefix, etc etc for each field. The old field names are still recognised but not added into the initial config file. M ./cabal-install/Distribution/Client/Config.hs -12 +51 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 05:10:03 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add symlink-bindir flag to install/upgrade command Was previously only available in the config file. M ./cabal-install/Distribution/Client/Setup.hs +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 09:12:02 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add changelog I can only trace the history back to the 0.3 era. A ./cabal-install/changelog View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 09:57:50 PDT 2008 Duncan Coutts <duncan@haskell.org> * Actually use the saved install flags when installing M ./cabal-install/Main.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 11:17:01 PDT 2008 Duncan Coutts <duncan@haskell.org> * add bootstrap shell script At the request of Bjorn. A ./cabal-install/bootstrap.sh View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 11:54:30 PDT 2008 Duncan Coutts <duncan@haskell.org> * Exclude various fields from the config file Excluded fields that make sense as command line flags but do not make sense to use every time by saving in the config file. M ./cabal-install/Distribution/Client/Config.hs -8 +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 15:19:26 PDT 2008 Duncan Coutts <duncan@haskell.org> * Don't override config with install defaults M ./cabal-install/Distribution/Client/Install.hs -3 +3 M ./cabal-install/Distribution/Client/Setup.hs -1 +1 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... Fri Aug 22 15:49:19 PDT 2008 Duncan Coutts <duncan@haskell.org> * Remove old unused modules and supporting util code M ./cabal-install/Distribution/Client/Dependency.hs -1 R ./cabal-install/Distribution/Client/Dependency/Naive.hs R ./cabal-install/Distribution/Client/Info.hs M ./cabal-install/Distribution/Client/Utils.hs -22 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 Aug 22 15:59:16 PDT 2008 Duncan Coutts <duncan@haskell.org> * Improve the error handling and error message for missing repo index files M ./cabal-install/Distribution/Client/IndexUtils.hs -11 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 16:00:33 PDT 2008 Duncan Coutts <duncan@haskell.org> * Decompress the repo index atomically. So if decompression fails (eg if the index is corrupt) then the decompressed file does not get (partially) written. M ./cabal-install/Distribution/Client/Update.hs -2 +6 M ./cabal-install/Distribution/Client/Utils.hs +26 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Aug 22 16:17:39 PDT 2008 Duncan Coutts <duncan@haskell.org> * Improve the HTTP error message slightly and note some TODOs M ./cabal-install/Distribution/Client/Fetch.hs -1 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Aug 24 11:05:01 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use updated tar code Much more robust. Correctly detects trucated archives. M ./cabal-install/Distribution/Client/IndexUtils.hs -23 +34 M ./cabal-install/Distribution/Client/Tar.hs -300 +635 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Aug 24 13:02:44 PDT 2008 Duncan Coutts <duncan@haskell.org> * Be less strict in requirements of upgrade Require current or later version, rather than strictly later verison. There may be dependencies that cannot be upgraded. M ./cabal-install/Distribution/Client/Dependency.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Aug 24 13:25:56 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use the right options when compiling external Setup prog So the cabal version constraint is actually passed in. This got lost in a previous refactoring. M ./cabal-install/Distribution/Client/SetupWrapper.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 26 13:38:27 PDT 2008 Duncan Coutts <duncan@haskell.org> * Adjust config defaults again Hopefully a bit clearer now and also means we pass the right flags to Setup that were compiled with older versions of Cabal. M ./cabal-install/Distribution/Client/Config.hs -24 +30 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 26 13:43:48 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add release date of 0.5.2 M ./cabal-install/changelog -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 26 13:58:49 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix haddock syntax M ./cabal-install/Distribution/Client/Tar.hs -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 26 14:09:23 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix up the bootstrap.sh and include it in the tarball M ./cabal-install/bootstrap.sh -7 +7 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 Aug 26 14:42:38 PDT 2008 Duncan Coutts <duncan@haskell.org> tagged 0.5.2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 26 16:26:06 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use mplus not mappend for combining tar filename checks mappend would join the error messages in the case that both checks failed. Also the monoid instance was new in base 3. M ./cabal-install/Distribution/Client/Tar.hs -7 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Aug 26 16:28:51 PDT 2008 Duncan Coutts <duncan@haskell.org> * Relax version constraint on unix package Allows building with ghc-6.6.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... Tue Aug 26 16:34:00 PDT 2008 Duncan Coutts <duncan@haskell.org> * Allow use of curl in bootstrap.sh Patch from jsnx. Fixes ticket #343. Also, use "cd blah; cd .." instead of "pushd blah; popd" as some shells lack pushd/popd M ./cabal-install/bootstrap.sh -7 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Aug 31 15:52:43 PDT 2008 Duncan Coutts <duncan@haskell.org> * Update to the development version of the Cabal lib The branch of cabal-install that tracks Cabal-1.4 now lives at http://darcs.haskell.org/cabal-branches/cabal-install-0.5/ M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs -5 +6 M ./cabal-install/Distribution/Client/Check.hs -4 +8 M ./cabal-install/Distribution/Client/Dependency.hs -3 +3 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -6 +6 M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -20 +9 M ./cabal-install/Distribution/Client/Dependency/Types.hs -2 +2 M ./cabal-install/Distribution/Client/Fetch.hs -5 +5 M ./cabal-install/Distribution/Client/IndexUtils.hs -10 +11 M ./cabal-install/Distribution/Client/Install.hs -4 +8 M ./cabal-install/Distribution/Client/InstallPlan.hs -17 +15 M ./cabal-install/Distribution/Client/List.hs -4 +5 M ./cabal-install/Distribution/Client/SetupWrapper.hs -44 +13 M ./cabal-install/Distribution/Client/SrcDist.hs -8 +13 M ./cabal-install/Distribution/Client/Utils.hs -2 +44 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... Fri Sep 26 14:48:28 PDT 2008 Duncan Coutts <duncan@haskell.org> * small improvements to bootstrap patch sent in by brian0, ticket #357 M ./cabal-install/bootstrap.sh -4 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Sep 25 11:14:41 PDT 2008 Andrea Vezzosi <sanzhiyan@gmail.com> * Fix infinite loop in the TopDown dependency resolver The loop occurred only if a package depended on another one with the same name, e.g. base-3.0.3.0 <- base-4.0.0.0 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -4 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 16:25:55 PDT 2008 Duncan Coutts <duncan@haskell.org> * Generalise the logging of selected and discarded packages Allow for selecting several packages in one go. Currently when we select a package we only list the over versions of the same package that that excludes, and not the other packages we exclude by applying the dependency constraints of the selected package. In future we would like to do that so we now report the package name of discards not just the version. Though we do group by the package name to avoid too much repition. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -12 +25 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 16:44:21 PDT 2008 Duncan Coutts <duncan@haskell.org> * Separate the construction of the exclusion list from its use Previously directly inserted packages into the excluded package list. Now we generate a list of them and then add them. We want the list of newly excluded packages separately because it is interesting information to report to the user when -v is on. M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -15 +17 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 16:50:06 PDT 2008 Duncan Coutts <duncan@haskell.org> * Have Constraints.constrain report the excluded packages Each time we apply a constraint we can end up excluding some extra package. Report that list of packages because it is quite interesting information to get insight into what the resolver is actually doing. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -17 +22 M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -4 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 17:14:00 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add the glue code to actully report excluded packages Now displayed in the output of install --dry-run -v M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -32 +43 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 18:27:41 PDT 2008 Duncan Coutts <duncan@haskell.org> * Make InstalledPackage an instance of PackageFixedDeps M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -1 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 18:31:41 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add the notion of paired packages to the Constraints ADT Packages like base-3 and base-4 are paired. This means they are supposed to be treated equivalently in some contexts. Paired packages are installed packages with the same name where one version depends on the other. M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -11 +39 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 22:19:19 PDT 2008 Duncan Coutts <duncan@haskell.org> * Handle constraints on paired packages The trick is that when applying constraints to paired packages, the constraint has to exclude both packages at once. We exclude the pair together or not at all. If it would only exclude one then we discard the constraint. M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -2 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 22:38:04 PDT 2008 Duncan Coutts <duncan@haskell.org> * When selecting paired packages, select both. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -1 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 4 22:38:21 PDT 2008 Duncan Coutts <duncan@haskell.org> * When finalising paired packages, cope with there being multiple choices For ordinary packages we selected a single version which means we added an equality constraint. As a consequence we used to assume there was only one version left when finalising. For paired packages there may be two versions left if the package did not directly constrain the choice to just one. If there is more than one version remaining then we have to pick between them. At the moment we still pick the highest version, but later we can take a global preference or polciy into account. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -5 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 5 00:55:56 PDT 2008 Duncan Coutts <duncan@haskell.org> * Print more details about what is to be installed with -v Reports if installs are new or reinstalls and for reinstalls prints what dependencies have changed. M ./cabal-install/Distribution/Client/Install.hs -12 +40 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 5 13:27:47 PDT 2008 Duncan Coutts <duncan@haskell.org> * Refactor and update the hackage index reading code M ./cabal-install/Distribution/Client/IndexUtils.hs -44 +94 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 5 20:02:59 PDT 2008 Duncan Coutts <duncan@haskell.org> * Read preferred versions from the package index From a file named 'preferred-versions' in the 00-index.tar.gz If there are several they are combined. Contents is like: base < 4 one suggested version constraint per line. M ./cabal-install/Distribution/Client/Fetch.hs -2 +2 M ./cabal-install/Distribution/Client/IndexUtils.hs -12 +36 M ./cabal-install/Distribution/Client/Install.hs -5 +9 M ./cabal-install/Distribution/Client/List.hs -2 +3 M ./cabal-install/Distribution/Client/Types.hs -2 +14 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 5 21:06:16 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix selection of paired packages M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -6 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 5 21:27:58 PDT 2008 Duncan Coutts <duncan@haskell.org> * Pass the package suggested version constraints through to the resolver Not used yet. M ./cabal-install/Distribution/Client/Dependency.hs -22 +52 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -7 +11 M ./cabal-install/Distribution/Client/Dependency/Types.hs -4 +26 M ./cabal-install/Distribution/Client/Fetch.hs -3 +7 M ./cabal-install/Distribution/Client/Install.hs -9 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 5 22:51:29 PDT 2008 Duncan Coutts <duncan@haskell.org> * Take preferred versions into account in dependency planning This means we can now globally prefer base 3 rather than 4. However we need to be slightly careful or we end up deciding to do silly things like rebuild haskell98 against base 3. That would happen because the h98 package doesn't constrain the choice to one or the other and we would prefer base 3. So we have to add that we really prefer whatever it uses currently (if any). M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -12 +30 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Oct 6 23:29:30 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix selecting paired packages Previously when we selected base 4 (and as a consequence slected base 3 too) we didn't properly trace the dependencies of base 3 so if nothing actually required base 3 then we ended up with base 3 in the solution but not with syb which it depends on. Consequently the solution was invalid. Now we select the paired package properly (hopefully). M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Oct 7 14:36:30 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix search paths for compiling Setup.hs scrips and in particular for bootstrapping the Cabal lib. M ./cabal-install/Distribution/Client/SetupWrapper.hs -3 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Oct 7 16:04:18 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add DownloadFailed as a possible failure for installation Should now be caught during installing a bunch of packages and not cause immediate overall failure. It should instead be treated like any other package build failure and be reported at the end and only affect other dependent builds. M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs +1 M ./cabal-install/Distribution/Client/Install.hs -14 +17 M ./cabal-install/Distribution/Client/Types.hs +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Oct 7 16:06:35 PDT 2008 Duncan Coutts <duncan@haskell.org> * Handle build reports with missing logs better M ./cabal-install/Distribution/Client/Install.hs -17 +37 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Oct 7 16:07:01 PDT 2008 Duncan Coutts <duncan@haskell.org> * Relax deps to build with ghc-6.10 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 Oct 9 23:58:54 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump version number and dependencies M ./cabal-install/cabal-install.cabal -4 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Oct 10 00:01:05 PDT 2008 Duncan Coutts <duncan@haskell.org> * Tidy up the preferred-versions file parser M ./cabal-install/Distribution/Client/IndexUtils.hs -1 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Oct 10 16:45:58 PDT 2008 Duncan Coutts <duncan@haskell.org> * Fix the -i dir for compiling Setup.hs when it's the current dir map "" to "." M ./cabal-install/Distribution/Client/SetupWrapper.hs -1 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Oct 10 16:48:36 PDT 2008 Duncan Coutts <duncan@haskell.org> * Apparnetly builds with unix-2.0 which is what came with ghc-6.6 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... Sat Oct 11 11:48:05 PDT 2008 Duncan Coutts <duncan@haskell.org> * Drop silly export M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 11 11:48:25 PDT 2008 Duncan Coutts <duncan@haskell.org> * Add Eq for a couple types in the anon build reports M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 11 11:49:37 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump versions of deps in the bootstrap script M ./cabal-install/bootstrap.sh -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 11 11:59:19 PDT 2008 Duncan Coutts <duncan@haskell.org> * Improve the README, better install instructions And slightly better intro guide to the main commands. M ./cabal-install/README -26 +117 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 11 12:53:14 PDT 2008 Duncan Coutts <duncan@haskell.org> * Bump version to 0.6.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... Sat Oct 11 12:54:20 PDT 2008 Duncan Coutts <duncan@haskell.org> tagged 0.6.0 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Nov 20 19:43:38 PST 2008 Lemmih <lemmih@gmail.com> * Slightly better lhc support. M ./cabal-install/Distribution/Client/Dependency.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Sep 3 16:03:34 PDT 2008 Duncan Coutts <duncan@haskell.org> * Only send the base file name when uploading tarballs The server should ignore the dir part anyway but there's no need to send it in the first place. M ./cabal-install/Distribution/Client/Upload.hs -6 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Nov 22 07:43:09 PST 2008 Duncan Coutts <duncan@haskell.org> * Warn about use of tabs 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... Sat Nov 22 08:30:26 PST 2008 Duncan Coutts <duncan@haskell.org> * Use a more general fix for "cabal install base" It's not specific to LHC. Normally we prevent upgrading of base since it's unlikely to work and would normally be accidental. However when the user explicitly asks to upgrade base then we let them do that and they can keep the pieces when it breaks. M ./cabal-install/Distribution/Client/Dependency.hs -5 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Nov 22 08:31:51 PST 2008 Duncan Coutts <duncan@haskell.org> * Put explicit lower bound on version of base It does not build with ghc-6.4.2, missing Functor instance for Either. M ./cabal-install/cabal-install.cabal -2 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Nov 22 08:35:27 PST 2008 Duncan Coutts <duncan@haskell.org> * Remove use of tabs M ./cabal-install/Distribution/Client/Fetch.hs -1 +1 M ./cabal-install/Distribution/Client/Install.hs -5 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Nov 13 10:59:23 PST 2008 Andrea Vezzosi <sanzhiyan@gmail.com> * Implement 'cabal unpack' command as in #390 M ./cabal-install/Distribution/Client/Setup.hs +41 A ./cabal-install/Distribution/Client/Unpack.hs M ./cabal-install/Main.hs +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 2 16:44:27 PST 2008 Duncan Coutts <duncan@haskell.org> * Mention where files get downloaded to at verbosity level verbose M ./cabal-install/Distribution/Client/Fetch.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 2 16:54:49 PST 2008 Duncan Coutts <duncan@haskell.org> * Fix warning aobut -fffi in OPTIONS pragma M ./cabal-install/Distribution/Client/Win32SelfUpgrade.hs -3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Dec 10 14:31:06 PST 2008 Duncan Coutts <duncan@haskell.org> * Use (\_ -> []) instead of mempty to avoid funky Monoid instance This would let us build with ghc-6.4 or nhc if it were not for other issues. M ./cabal-install/Distribution/Client/Setup.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Dec 10 14:32:42 PST 2008 Duncan Coutts <duncan@haskell.org> * Clean up the code in Main Make the names more regular and set up the various flags in a more regular way. M ./cabal-install/Main.hs -42 +48 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Dec 10 14:36:33 PST 2008 Duncan Coutts <duncan@haskell.org> * Tidy up the unpack code Also fix a bug for tar files that contain entries for files without preceding entries for the directories they are in. M ./cabal-install/Distribution/Client/Tar.hs -15 +23 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Dec 10 14:47:13 PST 2008 Duncan Coutts <duncan@haskell.org> * Bump version to 0.6.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... Mon Dec 15 12:28:56 PST 2008 Duncan Coutts <duncan@haskell.org> * Use the Platform type rather than passing around the OS and Arch separately M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -9 +8 M ./cabal-install/Distribution/Client/Dependency.hs -15 +13 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -1 +3 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -7 +7 M ./cabal-install/Distribution/Client/Dependency/Types.hs -3 +2 M ./cabal-install/Distribution/Client/Fetch.hs -2 +2 M ./cabal-install/Distribution/Client/Install.hs -10 +9 M ./cabal-install/Distribution/Client/InstallPlan.hs -21 +18 M ./cabal-install/Distribution/Client/InstallSymlink.hs -2 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 12:36:17 PST 2008 Duncan Coutts <duncan@haskell.org> * Don't re-export PackageName from Distribution.Client.Dependency It used to be a type alias. M ./cabal-install/Distribution/Client/Dependency.hs -1 +1 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -1 +1 M ./cabal-install/Distribution/Client/Dependency/Types.hs -1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 12:48:36 PST 2008 Duncan Coutts <duncan@haskell.org> * Rename and rearrange the PackagePreferences type M ./cabal-install/Distribution/Client/Dependency.hs -10 +15 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -8 +8 M ./cabal-install/Distribution/Client/Dependency/Types.hs -14 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 13:56:34 PST 2008 Duncan Coutts <duncan@haskell.org> * Change the dep resolver interface to pass constraints separately from targets This lets us specify constraints for packages that are not targets. M ./cabal-install/Distribution/Client/Dependency.hs -6 +10 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -19 +27 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -14 +17 M ./cabal-install/Distribution/Client/Dependency/Types.hs -2 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 14:10:34 PST 2008 Duncan Coutts <duncan@haskell.org> * Mostly renaming and trivial refactoring M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -9 +15 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -13 +16 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 14:17:28 PST 2008 Duncan Coutts <duncan@haskell.org> * Take preferences into account in the bogus resolver M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -15 +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 14:43:24 PST 2008 Duncan Coutts <duncan@haskell.org> * A bit more renaming in the top down resolver M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -28 +32 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 15 14:45:38 PST 2008 Duncan Coutts <duncan@haskell.org> * Add PackageInstalledConstraint to the PackageConstraint type This should be useful for things like preventing upgrading the base package for ghc. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -1 +36 M ./cabal-install/Distribution/Client/Dependency/Types.hs +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 16 15:34:46 PST 2008 Duncan Coutts <duncan@haskell.org> * Have the dep resolver take constraints and targets separately M ./cabal-install/Distribution/Client/Dependency.hs -17 +33 M ./cabal-install/Distribution/Client/Fetch.hs -3 +5 M ./cabal-install/Distribution/Client/Install.hs -10 +17 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 16 15:50:32 PST 2008 Duncan Coutts <duncan@haskell.org> * Implement cabal install --constraint= Connect up the existing user interface with the new dep resolver api. M ./cabal-install/Distribution/Client/Install.hs -10 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Dec 18 08:55:41 PST 2008 Duncan Coutts <duncan@haskell.org> * Workaround for a url parsing bug that breaks http proxies that need auth Diagnosis and patch from Valery V. Vorotyntsev. M ./cabal-install/Distribution/Client/HttpUtils.hs -1 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Dec 18 12:49:17 PST 2008 Duncan Coutts <duncan@haskell.org> * Generalise the way preferences are specified to the resolver We still provide a default global policy, but now we give a list of per-package preferences which can be on the version or installed state. Later preferences override earlier ones. M ./cabal-install/Distribution/Client/Dependency.hs -29 +34 M ./cabal-install/Distribution/Client/Fetch.hs -1 +1 M ./cabal-install/Distribution/Client/Install.hs -4 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Dec 18 13:38:49 PST 2008 Duncan Coutts <duncan@haskell.org> * Add a install/upgrade --preference='foo < 2' flag This behaves just like the preferred-versions file in the hackage index but it can be specified on the command line or in a config file. M ./cabal-install/Distribution/Client/Dependency.hs -9 M ./cabal-install/Distribution/Client/Fetch.hs -3 +7 M ./cabal-install/Distribution/Client/Install.hs -21 +37 M ./cabal-install/Distribution/Client/Setup.hs -4 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 19 10:23:28 PST 2008 Duncan Coutts <duncan@haskell.org> * Fix constraint set handling for installed constraints A rather subtle bug. The code was actually correct but the transitionsTo assertion was not accounting for a transition between the case where a package's available version had been excluded and then the whole thing got excluded by a version constraint. It counted one side as a loss without a corresponding gain on the other side. M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -2 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 19 11:23:09 PST 2008 Duncan Coutts <duncan@haskell.org> * Extend the invariant on the Constraints ADT It now carries around the original version of the database purely so that it can do a much more extensive consistency check. Packages are never gained or lost, just transfered between pots in various slightly tricky ways. M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -19 +61 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 19 11:37:40 PST 2008 Duncan Coutts <duncan@haskell.org> * Use installed constraints instead of hiding versions of the base package We want to stop cabal-install from accidentally trying to upgrade the base package since this doesn't work in most cases. We used to achieve that by deleting the base package from the available package index. We now do it by leaving the package index as is and instead adding a constraint that we pick only an installed version of base. This is a nicer hack and has the potential to give better error messages. M ./cabal-install/Distribution/Client/Dependency.hs -15 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 19 13:59:22 PST 2008 Duncan Coutts <duncan@haskell.org> * Use a more precise package substitution test in improvePlan This is where we take a valid plan and we "improve" it by swapping installed packages for available packages wherever possible. This change is to the condition we use in deciding if it is safe to use the installed package in place of a reinstall. Previously we checked that the dependencies of the installed version were exactly the same as the dependencies we were planning to reinstall with. That was valid but rather conservative. It caused problems in some situations where the installed package did not exactly match the available package (eg when using development versions of a package or of ghc). What we do now is test if the extra constraints implied by selecting the installed version are consistent with the existing set of constraints. This involves threading the constraint set around. In theory this should even cope with adding additional packages to the plan as a result of selecting an installed package. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -19 +47 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 21 10:47:55 PST 2008 Duncan Coutts <duncan@haskell.org> * Respect the --package-db flag when compiling Setup.hs Fixes ticket #394. M ./cabal-install/Distribution/Client/Install.hs -1 +9 M ./cabal-install/Distribution/Client/SetupWrapper.hs -3 +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jan 13 06:26:04 PST 2009 Duncan Coutts <duncan@haskell.org> * Print a newline after entering upload password So we end up with: Hackage password: Uploading test.tar.gz... rather than: Hackage password: Uploading test.tar.gz... M ./cabal-install/Distribution/Client/Upload.hs -1 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jan 13 08:14:26 PST 2009 Duncan Coutts <duncan@haskell.org> * Display examples in cabal install --help Examples: cabal install Package in the current directory cabal install foo Package from the hackage server cabal install foo-1.0 Specific version of a package cabal install 'foo < 2' Constrained package version M ./cabal-install/Distribution/Client/Setup.hs +14 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jan 13 11:20:58 PST 2009 Duncan Coutts <duncan@haskell.org> * Improve the cabal --help output Put the general info message at the top and make the explanation of installing a hackage package somewhat clearer. M ./cabal-install/Distribution/Client/Setup.hs -10 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jan 13 11:22:15 PST 2009 Duncan Coutts <duncan@haskell.org> * Print the location of the config file in the global --help Ticket #413 M ./cabal-install/Distribution/Client/Config.hs +1 M ./cabal-install/Main.hs -2 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jan 13 16:33:29 PST 2009 Duncan Coutts <duncan@haskell.org> * In cabal list, always display available and installed versions Previously we omitted the line if it was not installed, or was not available. However that confused people because it was not obvious that it would list both. Now it shows something like: * foo Latest version available: 1.0 Latest version installed: [ Not installed ] M ./cabal-install/Distribution/Client/List.hs -6 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jan 13 16:35:49 PST 2009 Duncan Coutts <duncan@haskell.org> * Don't display the category in cabal list output It is probably not sufficiently useful to justify the space it takes. M ./cabal-install/Distribution/Client/List.hs -4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jan 14 04:48:27 PST 2009 Duncan Coutts <duncan@haskell.org> * Warn if a package index from a remote repo is 15 days or older For example it will print: Warning: The package list for 'hackage.haskell.org' is 16 days old. Run 'cabal update' to get the latest list of available packages. M ./cabal-install/Distribution/Client/IndexUtils.hs -1 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jan 14 05:32:20 PST 2009 Duncan Coutts <duncan@haskell.org> * cabal update now reports if a newer version of cabal-install is available M ./cabal-install/Distribution/Client/Update.hs -4 +31 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jan 14 06:35:40 PST 2009 Duncan Coutts <duncan@haskell.org> * Don't add installed constraints system packages that are not installed In particular fixes a problem (ticket #439) where we required the installed version of ghc-prim with compilers that do not have that package such as ghc-6.8 and older, hugs, nhc, lhc etc. M ./cabal-install/Distribution/Client/Dependency.hs -4 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 02:22:10 PST 2009 Duncan Coutts <duncan@haskell.org> * Rewrite the bootstrap.sh script Hopefully more useful and more robust. In particular it does not download and install packages where suitable versions are already installed. It also checks for deps. M ./cabal-install/bootstrap.sh -37 +164 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 03:06:12 PST 2009 Duncan Coutts <duncan@haskell.org> * More improvments to the bootstrap.sh script M ./cabal-install/bootstrap.sh -5 +16 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 03:32:27 PST 2009 Duncan Coutts <duncan@haskell.org> * Traditional /bin/sh portability fixes for bootstrap.sh M ./cabal-install/bootstrap.sh -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 16:05:41 PST 2009 Duncan Coutts <duncan@haskell.org> * Note in the README that zlib needs the zlib C lib package M ./cabal-install/README +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 16:13:21 PST 2009 Duncan Coutts <duncan@haskell.org> * Read install dirs correctly from old-style .cabal/config files Should fix ticket #365 M ./cabal-install/Distribution/Client/Config.hs -4 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 16:14:21 PST 2009 Duncan Coutts <duncan@haskell.org> * Improve the printing of config file field parse error messages M ./cabal-install/Distribution/Client/Config.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 15 16:28:51 PST 2009 Duncan Coutts <duncan@haskell.org> * Parse compiler field from old config files correctly Really old versions of cabal-install generated a default config containing "compiler: GHC". Sadly the new way we generate the config file parser from the command line parser means we end up with a case-sensitive parser as it only matches the exact command line flags. So we hack it and add in a traditional parser for that field only. Really the command line and config file infrastructure needs rewriting again. Sigh. M ./cabal-install/Distribution/Client/Config.hs -1 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jan 16 05:56:46 PST 2009 Duncan Coutts <duncan@haskell.org> * Update to using HTTP-4000.x This should fix a long-standing bug with http proxies (ticket #352) It should also make downloads faster, or at least use less memory. M ./cabal-install/Distribution/Client/BuildReports/Upload.hs -3 +7 M ./cabal-install/Distribution/Client/Fetch.hs -2 +6 M ./cabal-install/Distribution/Client/HttpUtils.hs -3 +5 M ./cabal-install/Distribution/Client/Upload.hs -2 +4 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 16 09:59:00 PST 2009 Duncan Coutts <duncan@haskell.org> * Only print the config file location for the global --help M ./cabal-install/Main.hs -3 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 18 18:52:02 PST 2009 Duncan Coutts <duncan@haskell.org> * Add initial implementation of cabal info It provides more detailed information on a particular package. Still a few TODOs. Fixes #361, #449 and #456. M ./cabal-install/Distribution/Client/List.hs -40 +184 M ./cabal-install/Distribution/Client/Setup.hs -12 +34 M ./cabal-install/Main.hs -1 +19 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jan 22 16:48:10 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix some FIXMEs and do some TODOs in the list command Now properly prints if the haddock docs are installed and if the tarball is cached. It did print them before but it was lying. M ./cabal-install/Distribution/Client/List.hs -108 +150 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jan 23 08:04:43 PST 2009 Duncan Coutts <duncan@haskell.org> * Don't use grep -e, solaris does not like it M ./cabal-install/bootstrap.sh -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jan 23 08:05:50 PST 2009 Duncan Coutts <duncan@haskell.org> * Improve error message when ghc or ghc-pkg are mismatched or not found M ./cabal-install/bootstrap.sh -1 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Jan 23 08:07:00 PST 2009 Duncan Coutts <duncan@haskell.org> * Update HTTP dep in the bootstrap script M ./cabal-install/bootstrap.sh -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 25 09:09:51 PST 2009 Duncan Coutts <duncan@haskell.org> * Make configure use the dependency resolver This means it makes smarter decisions and also decions that are more consistent with those taken by the install command. A ./cabal-install/Distribution/Client/Configure.hs M ./cabal-install/Main.hs -10 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 25 16:39:51 PST 2009 Duncan Coutts <duncan@haskell.org> * Remove unnecessary qualified use of ConfigFlags M ./cabal-install/Distribution/Client/Configure.hs -14 +13 M ./cabal-install/Distribution/Client/Install.hs -49 +53 M ./cabal-install/Distribution/Client/Setup.hs -10 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 25 17:01:32 PST 2009 Duncan Coutts <duncan@haskell.org> * Add ConfigExFlags and related command This is for configure flags that we use in the configure command in the cabal command line tool that are not present in runghc Setup configure command line interface. These are flags that we are moving from the install command, so that we can also use them for the configure command. Initially it's just the flags for specifying package version preferences and the cabal library version. We'll add constraints later. M ./cabal-install/Distribution/Client/Config.hs +13 M ./cabal-install/Distribution/Client/Setup.hs +64 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 25 17:09:18 PST 2009 Duncan Coutts <duncan@haskell.org> * Add ConfigExFlags into the configure, install and upgrade commands Not yet passed all the way through. M ./cabal-install/Distribution/Client/Setup.hs -13 +12 M ./cabal-install/Main.hs -9 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 25 17:19:42 PST 2009 Duncan Coutts <duncan@haskell.org> * Change the install and configure modules to use the extended config flags M ./cabal-install/Distribution/Client/Configure.hs -11 +13 M ./cabal-install/Distribution/Client/Install.hs -24 +36 M ./cabal-install/Main.hs -12 +14 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 25 17:24:12 PST 2009 Duncan Coutts <duncan@haskell.org> * Remove the prefernece and cabal lib version flags from the InstallFlags They are now in the ConfigExFlags instead. M ./cabal-install/Distribution/Client/Setup.hs -27 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 1 14:50:21 PST 2009 Duncan Coutts <duncan@haskell.org> * Add homepage and bug-reports fields to .cabal file 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... Sun Feb 1 17:19:17 PST 2009 Duncan Coutts <duncan@haskell.org> * Add compat withTempDirectory function This is already in Cabal HEAD but we cannot use that yet M ./cabal-install/Distribution/Client/Utils.hs -2 +11 A ./cabal-install/Distribution/Compat/ A ./cabal-install/Distribution/Compat/TempFile.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... Sun Feb 1 17:22:55 PST 2009 Duncan Coutts <duncan@haskell.org> * Use the new withTempDirectory function In particular it means that install will unpack packages into different temp dirs on each invocation which means that running install on the same package for different compilers at the same time should not clash. This is quite useful for testing. M ./cabal-install/Distribution/Client/Install.hs -15 +15 M ./cabal-install/Distribution/Client/SrcDist.hs -10 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 8 08:52:40 PST 2009 Andrea Vezzosi <sanzhiyan@gmail.com> * Fix #490, unpack now gives a proper error message. M ./cabal-install/Distribution/Client/Unpack.hs -12 +24 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Feb 9 12:12:28 PST 2009 Duncan Coutts <duncan@haskell.org> * Don't report that packages are cached at the default verbosity level It's just not that useful. Report it at -v verobisty level, and change the text and formatting. M ./cabal-install/Distribution/Client/Fetch.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Feb 9 13:18:44 PST 2009 Duncan Coutts <duncan@haskell.org> * Improve the cabal update notice M ./cabal-install/Distribution/Client/Update.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Feb 10 15:07:36 PST 2009 Ganesh Sittampalam <ganesh.sittampalam@credit-suisse.com> * always check environment variables for HTTP proxy first M ./cabal-install/Distribution/Client/HttpUtils.hs -7 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 15 10:58:00 PST 2009 Duncan Coutts <duncan@haskell.org> * Rearrange user interface for build logging The new options (as described in ticket #501) are: --build-summary=TEMPLATE --build-log=TEMPLATE --remote-build-reporting=LEVEL where LELVEL `elem` [none,anonymous,detailed] A ./cabal-install/Distribution/Client/BuildReports/Types.hs M ./cabal-install/Distribution/Client/Install.hs -9 +14 M ./cabal-install/Distribution/Client/Setup.hs -8 +25 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 15 11:02:54 PST 2009 Duncan Coutts <duncan@haskell.org> * Complete the implementation of --build-summary=TEMPLATE Actually respect the new flag. It's actually a list of template files and all specified files get written to. This allows us to specify a default build log file and also have the user write to extra ones. The summary file template can contain $pkgid $compiler etc. M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -12 +25 M ./cabal-install/Distribution/Client/Install.hs -4 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 15 11:05:24 PST 2009 Duncan Coutts <duncan@haskell.org> * Put the default logging and reporting setting in the initial config file. M ./cabal-install/Distribution/Client/Config.hs +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 15 11:07:27 PST 2009 Duncan Coutts <duncan@haskell.org> * Change the field order in the initial config file. Also update the name of one excluded field. M ./cabal-install/Distribution/Client/Config.hs -19 +22 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 15 11:08:17 PST 2009 Duncan Coutts <duncan@haskell.org> * Put an explanation of the config file format at the top in comments. M ./cabal-install/Distribution/Client/Config.hs -1 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Feb 16 10:14:24 PST 2009 Duncan Coutts <duncan@haskell.org> * Add warnings in the case that no remote servers have been specified It's not strictly an error but it can be rather confusing. M ./cabal-install/Distribution/Client/IndexUtils.hs +7 M ./cabal-install/Distribution/Client/Update.hs -1 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Feb 18 14:17:52 PST 2009 Duncan Coutts <duncan@haskell.org> * Disable the upgrade command for now. M ./cabal-install/Distribution/Client/Install.hs -10 +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Feb 18 14:39:43 PST 2009 Duncan Coutts <duncan@haskell.org> * Tweaks to the bootstrap script Update Cabal lib version to 1.6.0.2 Implement a couple shell script coding style recommendations. M ./cabal-install/bootstrap.sh -9 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Feb 18 15:09:18 PST 2009 Duncan Coutts <duncan@haskell.org> * Update changelog for 0.6.2 release M ./cabal-install/changelog +25 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Feb 18 15:10:16 PST 2009 Duncan Coutts <duncan@haskell.org> * Bump version to 0.6.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... Wed Feb 18 15:46:50 PST 2009 Duncan Coutts <duncan@haskell.org> * Add extra assertion into the top down dep planner M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -1 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Feb 18 15:52:06 PST 2009 Duncan Coutts <duncan@haskell.org> * Add missing other-modules 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... Thu Feb 19 05:07:05 PST 2009 Duncan Coutts <duncan@haskell.org> * Update the README M ./cabal-install/README -7 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Feb 19 05:07:20 PST 2009 Duncan Coutts <duncan@haskell.org> tagged 0.6.2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Feb 21 07:46:05 PST 2009 Duncan Coutts <duncan@haskell.org> * Actually does compile with unix-1.0 that comes with ghc-6.6 ghc-6.6.1 came with unix-2.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 Mar 1 09:49:49 PST 2009 Duncan Coutts <duncan@haskell.org> * Update tar code based on new tar package M ./cabal-install/Distribution/Client/IndexUtils.hs -21 +23 M ./cabal-install/Distribution/Client/Install.hs -4 +5 M ./cabal-install/Distribution/Client/Tar.hs -347 +456 M ./cabal-install/Distribution/Client/Unpack.hs -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 22 16:52:51 PST 2009 Paolo Losi <paolo.losi@gmail.com> * Select Configuration file via env var CABAL_CONFIG. M ./cabal-install/Distribution/Client/Config.hs -2 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 15 05:54:07 PDT 2009 Duncan Coutts <duncan@haskell.org> * Clarify the instructions in the README and bootstrap.sh Addresses the complaint in ticket #523. M ./cabal-install/README -7 +27 M ./cabal-install/bootstrap.sh -4 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Mar 18 02:17:30 PDT 2009 Duncan Coutts <duncan@haskell.org> * Solaris 9 /bin/sh doesn't like the ! syntax in bootstrap.sh M ./cabal-install/bootstrap.sh -1 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 31 11:43:36 PDT 2009 Duncan Coutts <duncan@haskell.org> * New development branch, version 0.7 Update to development version of Cabal M ./cabal-install/Distribution/Client/Configure.hs -10 +11 M ./cabal-install/Distribution/Client/Fetch.hs -4 +4 M ./cabal-install/Distribution/Client/Install.hs -11 +12 M ./cabal-install/Distribution/Client/List.hs -7 +8 M ./cabal-install/Distribution/Client/Setup.hs -10 +1 M ./cabal-install/Distribution/Client/SetupWrapper.hs -9 +19 M ./cabal-install/Main.hs -1 +28 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... Sun May 31 12:02:39 PDT 2009 Duncan Coutts <duncan@haskell.org> * Fix uses of deprecated stuff M ./cabal-install/Distribution/Client/Configure.hs -3 +3 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -3 +3 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -2 +2 M ./cabal-install/Distribution/Client/IndexUtils.hs -2 +2 M ./cabal-install/Distribution/Client/Install.hs -3 +3 M ./cabal-install/Distribution/Client/Setup.hs -6 +4 M ./cabal-install/Distribution/Client/SetupWrapper.hs -3 +4 M ./cabal-install/Distribution/Client/Unpack.hs -3 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 31 12:03:18 PDT 2009 Duncan Coutts <duncan@haskell.org> * Use new top handler, should get better error messages 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... Sun May 31 12:13:46 PDT 2009 Duncan Coutts <duncan@haskell.org> * Simplify version ranges before printing in error messages Part of ticket #369 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -8 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 8 07:29:25 PDT 2009 Duncan Coutts <duncan@haskell.org> * Debian in their wisdom decided to build network against parsec 3. So checking for parsec 2 fails. We don't strictly need parsec, it's just a dependency of network, so remove the check. M ./cabal-install/bootstrap.sh -1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Mar 21 08:46:23 PDT 2009 Duncan Coutts <duncan@haskell.org> * Improve the parse error message for package name/deps Make it clear that it's the specification of the package name that is at fault rather than the package to which the name refers. M ./cabal-install/Distribution/Client/Setup.hs -1 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jun 3 03:16:23 PDT 2009 Duncan Coutts <duncan@haskell.org> * Only apply preferences to base if its version is unbounded above Fixes ticket #485. This means that for constraints like: build-depends: base >= 3 && < 5 we will pick version 4. However we will continue to apply the version 3 preference for things like: build-depends: base >= 3 Where there is no upper bound on the version. Note that we now also ignore preferences for base given on the command line. We should implement #483 to split prefs from shims. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -6 +20 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jun 3 03:22:54 PDT 2009 Duncan Coutts <duncan@haskell.org> * Improve formatting of cabal check output M ./cabal-install/Distribution/Client/Check.hs -9 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jun 3 03:23:12 PDT 2009 Duncan Coutts <duncan@haskell.org> * Require latest Cabal lib 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 Jun 4 05:48:36 PDT 2009 Duncan Coutts <duncan@haskell.org> * Make cabal upload/check print out the error messages reported by the server The code to do it was already there but we were checking for the mime type text/plain using just (==) when in fact the server reports text/plain; charset="ISO-8859-1" so we have to parse the field a bit better (still a bit of a hack). M ./cabal-install/Distribution/Client/Upload.hs -4 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 4 10:57:26 PDT 2009 Duncan Coutts <duncan@haskell.org> * Only report preferred new versions of cabal-install are available That is, use the "preferred-versions" mechanism when deciding whether there is a new version available. This would allow us to upload a new version without everyone immediately being told to get it and try it out. M ./cabal-install/Distribution/Client/Update.hs -12 +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 4 11:05:00 PDT 2009 Duncan Coutts <duncan@haskell.org> * Fix use of deprecated version constructors M ./cabal-install/Distribution/Client/Update.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 4 19:34:41 PDT 2009 Duncan Coutts <duncan@haskell.org> * Fix sdist Fix handling of base dir in tar file creation. M ./cabal-install/Distribution/Client/Tar.hs -14 +17 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Jun 11 10:12:33 PDT 2009 Brent Yorgey <byorgey@cis.upenn.edu> * add message to 'package not found' error advising to run 'cabal update'. (#497) M ./cabal-install/Distribution/Client/IndexUtils.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Jun 13 08:09:58 PDT 2009 Dino Morelli <dino@ui3.info> * Now supporting explicit --user or --global switches in bootstrap.sh with usage feedback for bad args This change was adapted from work submitted to the cabal-devel mailing list by Jason Dusek. M ./cabal-install/bootstrap.sh -1 +24 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jun 7 10:05:12 PDT 2009 Andrea Vezzosi <sanzhiyan@gmail.com> * #516, maintains a per-user index of haddock docs If the haddock-index flag is set it keeps an index of the haddock documentation of the packages in the global and user databases A ./cabal-install/Distribution/Client/Haddock.hs M ./cabal-install/Distribution/Client/Install.hs -1 +36 M ./cabal-install/Distribution/Client/Setup.hs +9 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 Jul 4 10:06:02 PDT 2009 Duncan Coutts <duncan@haskell.org> * Use $pkgroot/package/$pkgid.tar.gz as tarball URL M ./cabal-install/Distribution/Client/Fetch.hs -3 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jul 6 17:37:22 PDT 2009 Duncan Coutts <duncan@haskell.org> * Move regenerateHaddockIndex more out-of-line in the Install module Also update the code somewhat following the changes in the Cabal API for path templates and substitutions. M ./cabal-install/Distribution/Client/Install.hs -39 +66 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jul 6 17:48:36 PDT 2009 Duncan Coutts <duncan@haskell.org> * Use defaultInstallFlags as the defaults M ./cabal-install/Distribution/Client/Install.hs -5 +4 M ./cabal-install/Main.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jul 6 17:51:49 PDT 2009 Duncan Coutts <duncan@haskell.org> * Be less noisy about warning about packages with missing docs M ./cabal-install/Distribution/Client/Haddock.hs -3 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jul 6 18:30:30 PDT 2009 Duncan Coutts <duncan@haskell.org> * Make the documentation toggle determine if we make the haddock index Previously the --haddock-index=template flag controled both the template used and whether it's used at all. When no path was set then it was not used. The problem with that is that since we are not enabling this feature by default then the default is blank. That is the default config file would look like: -- haddock-index: which doesn't help anyone discover what it means or what a sensible setting would be. By having a separate toggle to enable/disable we can have a default for the index file which makes it easy to discover in the config file: -- documentation: False -- doc-index-file: $datadir/doc/index.html All the user has to do is uncomment the first line and use True. M ./cabal-install/Distribution/Client/Install.hs -3 +4 M ./cabal-install/Distribution/Client/Setup.hs -3 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Jul 7 02:59:44 PDT 2009 Duncan Coutts <duncan@haskell.org> * Require Cabal lib version 1.7.3 Needs recent api changes. 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 Aug 28 17:49:59 PDT 2009 Duncan Coutts <duncan@haskell.org> * Fix calculation of paths in check for bindir symlink overwriting We were doing it wrong, but Linux realpath() C function was letting us get away with it. The Solaris realpath() is stricter. The new implementation is also simpler, relying on the fact that the canonicalizePath function will resolve symlinks. M ./cabal-install/Distribution/Client/InstallSymlink.hs -15 +14 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Oct 20 14:23:19 PDT 2009 Duncan Coutts <duncan@haskell.org> * Apply suggestion for bootstrap failure message ghc ticket #3602 M ./cabal-install/bootstrap.sh +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Sep 2 09:03:32 PDT 2009 benedikt.huber@gmail.com * Collecting some heuristics for creating an initial cabal file A ./cabal-install/Distribution/Client/Init/ A ./cabal-install/Distribution/Client/Init/Heuristics.hs View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 11 09:56:44 PDT 2009 Brent Yorgey <byorgey@cis.upenn.edu> * add 'init' subcommand for initializing project cabalisation A ./cabal-install/Distribution/Client/Init.hs M ./cabal-install/Distribution/Client/Init/Heuristics.hs -2 +2 A ./cabal-install/Distribution/Client/Init/Licenses.hs A ./cabal-install/Distribution/Client/Init/Types.hs M ./cabal-install/Distribution/Client/Setup.hs -1 +162 M ./cabal-install/Main.hs +7 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... Sun Oct 18 10:32:33 PDT 2009 Duncan Coutts <duncan@haskell.org> * Update for changes to finalizePackageDescription M ./cabal-install/Distribution/Client/Configure.hs -4 +4 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -6 +4 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -3 +6 M ./cabal-install/Distribution/Client/Install.hs -4 +4 M ./cabal-install/Distribution/Client/InstallPlan.hs -3 +5 M ./cabal-install/Distribution/Client/InstallSymlink.hs -6 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Oct 22 05:39:46 PDT 2009 Duncan Coutts <duncan@haskell.org> * Initial go at converting to the new Cabal-1.8 installed package system It works by ignoring the possibility that there could be multiple installed packages sharing the same source package Id. We just pick the "top most" one which is usually ok. We make no attempt to check that we are using consistent installed packages. M ./cabal-install/Distribution/Client/Configure.hs -11 +5 M ./cabal-install/Distribution/Client/Dependency.hs -10 +9 M ./cabal-install/Distribution/Client/Dependency/Bogus.hs -2 +2 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -21 +20 M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -2 +2 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -12 +11 M ./cabal-install/Distribution/Client/Dependency/Types.hs -5 +3 M ./cabal-install/Distribution/Client/Fetch.hs -4 +3 M ./cabal-install/Distribution/Client/Haddock.hs -5 +9 M ./cabal-install/Distribution/Client/IndexUtils.hs -5 +48 M ./cabal-install/Distribution/Client/Install.hs -11 +10 M ./cabal-install/Distribution/Client/InstallPlan.hs -5 +4 M ./cabal-install/Distribution/Client/List.hs -14 +13 A ./cabal-install/Distribution/Client/PackageIndex.hs M ./cabal-install/Distribution/Client/SetupWrapper.hs -6 +9 M ./cabal-install/Distribution/Client/Types.hs -5 +30 M ./cabal-install/Distribution/Client/Unpack.hs -1 +1 M ./cabal-install/Distribution/Client/Update.hs -1 +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... Wed Oct 28 06:20:37 PDT 2009 Duncan Coutts <duncan@haskell.org> * Update new cabal init code for the recent package id changes M ./cabal-install/Distribution/Client/Init/Heuristics.hs -1 +1 M ./cabal-install/Distribution/Client/Setup.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Oct 28 06:35:13 PDT 2009 Duncan Coutts <duncan@haskell.org> * Update list of modules (so sdist works) M ./cabal-install/cabal-install.cabal +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Oct 28 06:35:27 PDT 2009 Duncan Coutts <duncan@haskell.org> * Bump version number a bit 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 28 09:31:48 PDT 2009 Duncan Coutts <duncan@haskell.org> * Allow building with base 4 M ./cabal-install/Distribution/Client/Install.hs -7 +35 M ./cabal-install/Distribution/Client/Types.hs -7 +7 M ./cabal-install/Distribution/Client/Utils.hs -5 +5 A ./cabal-install/Distribution/Compat/Exception.hs 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 28 09:33:52 PDT 2009 Duncan Coutts <duncan@haskell.org> * Fix building with ghc-6.8 M ./cabal-install/Distribution/Client/Init/Heuristics.hs +16 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Oct 28 09:37:19 PDT 2009 Duncan Coutts <duncan@haskell.org> * Fix building with ghc-6.12 M ./cabal-install/Distribution/Compat/TempFile.hs -10 +25 M ./cabal-install/cabal-install.cabal -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Oct 28 09:38:49 PDT 2009 Duncan Coutts <duncan@haskell.org> * Parly fix building with ghc-6.6 The new cabal init stuff needs some work. M ./cabal-install/cabal-install.cabal -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Nov 2 07:05:28 PST 2009 Duncan Coutts <duncan@haskell.org> * Switch to using some Utils from the Cabal lib Remove local copies. Also fixes a bug recently introduced in the writeFileAtomic function, spotted by Peter Robinson. M ./cabal-install/Distribution/Client/Fetch.hs -4 +3 M ./cabal-install/Distribution/Client/Install.hs -3 +3 M ./cabal-install/Distribution/Client/SetupWrapper.hs -2 +2 M ./cabal-install/Distribution/Client/SrcDist.hs -4 +2 M ./cabal-install/Distribution/Client/Update.hs -6 +5 M ./cabal-install/Distribution/Client/Utils.hs -54 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Nov 1 23:34:14 PST 2009 Robin Green <greenrd@greenrd.org> * Fix bootstrap (#599) M ./cabal-install/bootstrap.sh -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Nov 4 06:26:58 PST 2009 Duncan Coutts <duncan@haskell.org> * Add a couple checks to "cabal unpack" and improve the messages M ./cabal-install/Distribution/Client/Unpack.hs -11 +28 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 10 03:24:15 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix base 4 exceptions in #ifdef WIN32 code section M ./cabal-install/Distribution/Client/HttpUtils.hs -2 +4 M ./cabal-install/Distribution/Compat/Exception.hs +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 10 03:37:35 PST 2009 Duncan Coutts <duncan@haskell.org> * Build with ghc-6.6 M ./cabal-install/Distribution/Client/Init.hs -1 +12 M ./cabal-install/Distribution/Client/Init/Heuristics.hs -4 +2 M ./cabal-install/Distribution/Client/Init/Types.hs +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Nov 13 08:58:33 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * fixed 'cabal sdist' 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 Nov 22 00:02:55 PST 2009 Duncan Coutts <duncan@haskell.org> * Ignore PAX entries when checking for tarbombs When checking for tarbombs, ignore PAX entry types 'g' and 'x'. These do not get extracted so their names do not matter. M ./cabal-install/Distribution/Client/Tar.hs +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Nov 22 00:04:46 PST 2009 Duncan Coutts <duncan@haskell.org> * Create all parent directories of extraced files Previously only created the immediate parent directory. No rely more heavily on the file security check to make sure we are not writing files outside of the target area. M ./cabal-install/Distribution/Client/Tar.hs -3 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Nov 22 22:37:34 PST 2009 Duncan Coutts <duncan@haskell.org> * Allow numeric fields in tar headers that use binary format This is an old non-standard extension that some tar tools still use. M ./cabal-install/Distribution/Client/Tar.hs -11 +25 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 08:51:19 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix combination of --global --package-db when compiling Setup.hs scripts The order of the package db stack is important. M ./cabal-install/Distribution/Client/Install.hs -1 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 08:52:21 PST 2009 Duncan Coutts <duncan@haskell.org> * Update the changelog for 0.8 M ./cabal-install/changelog +16 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 08:52:34 PST 2009 Duncan Coutts <duncan@haskell.org> * Update the bootstrap script to work with ghc-6.12 We can no longer expect mtl, network and parsec to be installed. M ./cabal-install/bootstrap.sh -12 +18 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 09:16:42 PST 2009 Duncan Coutts <duncan@haskell.org> * Update various .cabal bits M ./cabal-install/cabal-install.cabal -9 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 09:22:45 PST 2009 Duncan Coutts <duncan@haskell.org> * Bump head to new dev version 0.9.x 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 Dec 18 09:34:59 PST 2009 Duncan Coutts <duncan@haskell.org> * Update the README M ./cabal-install/README -6 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 15:25:01 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix reporting of installed program versions in cabal list We do not know if programs are installed or not so report unknown rather than saying it is not installed. M ./cabal-install/Distribution/Client/List.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 19:07:47 PST 2009 Duncan Coutts <duncan@haskell.org> * Make the cabal init command line flag names follow the normal convention Using hyphens rather than upper case. M ./cabal-install/Distribution/Client/Setup.hs -27 +25 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 19:08:55 PST 2009 Duncan Coutts <duncan@haskell.org> * Remove stability feature from cabal init The stability field in .cabal files is deprecated since it's mostly useless. M ./cabal-install/Distribution/Client/Init.hs -15 +1 M ./cabal-install/Distribution/Client/Init/Types.hs -15 M ./cabal-install/Distribution/Client/Setup.hs -6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 19:10:17 PST 2009 Duncan Coutts <duncan@haskell.org> * Use the standard form of copyright statement in BSD3 license template See http://www.opensource.org/licenses/bsd-license.php M ./cabal-install/Distribution/Client/Init/Licenses.hs -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Dec 18 19:44:51 PST 2009 Duncan Coutts <duncan@haskell.org> * Reorder commands in cabal --help output M ./cabal-install/Distribution/Client/Setup.hs -1 +1 M ./cabal-install/Main.hs -5 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 21 06:07:52 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix fromFlag error in upgrade Use the missing defaultInstallFlags. M ./cabal-install/Main.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:17:17 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/SrcDist.hs: fixed warning on -Wall (unused result) M ./cabal-install/Distribution/Client/SrcDist.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:19:40 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/IndexUtils.hs: fixed warning on -Wall (unused result) M ./cabal-install/Distribution/Client/IndexUtils.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:33:50 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/BuildReports/Anonymous.hs: removed unused import of BuildResult M ./cabal-install/Distribution/Client/BuildReports/Anonymous.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:37:57 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/Haddock.hs: removed redundant instances M ./cabal-install/Distribution/Client/Haddock.hs -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:44:48 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/Setup.hs: suppress warning (unused variable) M ./cabal-install/Distribution/Client/Setup.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:45:45 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/Unpack.hs: removed redundant import M ./cabal-install/Distribution/Client/Unpack.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 13:55:08 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/Install.hs: removed unused 'compilerTemplateEnv' from import M ./cabal-install/Distribution/Client/Install.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Dec 20 14:01:05 PST 2009 Sergei Trofimovich <slyfox@community.haskell.org> * Distribution/Client/InstallSymlink.hs: explicitely import 'catch' and friend tom System.IO M ./cabal-install/Distribution/Client/InstallSymlink.hs +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 22 00:05:37 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix cabal sdist --snapshot M ./cabal-install/Distribution/Client/SrcDist.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 21 23:58:21 PST 2009 Duncan Coutts <duncan@haskell.org> * Fix a couple more ghc-6.12 -Wall warnings M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -1 +1 M ./cabal-install/Distribution/Client/BuildReports/Types.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 22 01:51:52 PST 2009 Duncan Coutts <duncan@haskell.org> * Move downloadURI to HttpUtils module And use exceptions rather than return codes. M ./cabal-install/Distribution/Client/Fetch.hs -42 +8 M ./cabal-install/Distribution/Client/HttpUtils.hs -4 +40 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Dec 28 08:54:11 PST 2009 Duncan Coutts <duncan@haskell.org> * Change the default config on Windows to per-user installs Slightly experimental. We should look out for unexpected consequences. M ./cabal-install/Distribution/Client/Config.hs -7 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 22 05:09:59 PST 2009 Duncan Coutts <duncan@haskell.org> * Remove now-unused compat module R ./cabal-install/Distribution/Compat/TempFile.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... Tue Dec 22 05:25:26 PST 2009 Duncan Coutts <duncan@haskell.org> * Display the exception for failed downloads Not great but better than nothing. M ./cabal-install/Distribution/Client/Install.hs -1 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Dec 29 13:20:20 PST 2009 Duncan Coutts <duncan@haskell.org> * Adjust to the change in the type of getInstalledPackages It used to return Maybe, now it always gives us a PackageIndex. This depends on an API change in Cabal-1.9.x. M ./cabal-install/Distribution/Client/Configure.hs -3 +3 M ./cabal-install/Distribution/Client/Dependency.hs -8 +3 R ./cabal-install/Distribution/Client/Dependency/Bogus.hs M ./cabal-install/Distribution/Client/Fetch.hs -1 +1 M ./cabal-install/Distribution/Client/IndexUtils.hs -3 +2 M ./cabal-install/Distribution/Client/Install.hs -18 +8 M ./cabal-install/Distribution/Client/List.hs -2 +2 M ./cabal-install/Distribution/Client/SetupWrapper.hs -3 +1 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 Jan 13 11:19:13 PST 2010 Duncan Coutts <duncan@haskell.org> * Fix the display of the license in "cabal list" output M ./cabal-install/Distribution/Client/List.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Jan 13 19:35:01 PST 2010 Duncan Coutts <duncan@haskell.org> * Don't generate #! lines in Setup.hs files in cabal init We don't want to encourage multiple ways of invoking Setup The one true (cross-platform) way is: runghc Setup M ./cabal-install/Distribution/Client/Init.hs -2 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Mar 20 14:53:31 PDT 2010 Duncan Coutts <duncan@haskell.org> * Cope with intra-package deps when constructing install plans M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -1 +3 M ./cabal-install/Distribution/Client/InstallPlan.hs -2 +3 A ./cabal-install/Distribution/Client/PackageUtils.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 Apr 1 09:51:25 PDT 2010 Duncan Coutts <duncan@haskell.org> * Import installDirsOptions from Cabal lib M ./cabal-install/Distribution/Client/Config.hs -61 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 3 12:29:27 PST 2009 Peter Robinson <thaldyron@gmail.com> * Updated patch for world-file support Update 2: now uses writeFileAtomic from Cabal This is a new patch for Ticket #199; it adds the "--one-shot" option. A world file entry contains the package-name, package-version, and user flags (if any). For example, the file entry generated by # cabal install stm-io-hooks --flags="-debug" looks like this: # stm-io-hooks -any --flags="-debug" To rebuild/upgrade the packages in world (e.g. when updating the compiler) use cabal install world Installing package 'foo' without adding it to the world file: # cabal install foo --one-shot M ./cabal-install/Distribution/Client/Config.hs -1 +13 M ./cabal-install/Distribution/Client/Setup.hs -8 +25 M ./cabal-install/Distribution/Client/Types.hs -2 +61 A ./cabal-install/Distribution/Client/World.hs M ./cabal-install/Main.hs -2 +19 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 Apr 25 17:51:10 PDT 2010 Duncan Coutts <duncan@haskell.org> * Rearrange installation code to make it a bit clearer M ./cabal-install/Distribution/Client/Install.hs -212 +319 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Apr 26 18:13:18 PDT 2010 Duncan Coutts <duncan@haskell.org> * Make the logs dir a proper config item and pass it to the install code M ./cabal-install/Distribution/Client/Config.hs -6 +8 M ./cabal-install/Distribution/Client/Install.hs -16 +19 M ./cabal-install/Distribution/Client/Setup.hs +9 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... Sun May 9 20:13:28 PDT 2010 Duncan Coutts <duncan@haskell.org> * Add plumbing in install code for global flags and target list M ./cabal-install/Distribution/Client/Install.hs -13 +29 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 9 20:21:21 PDT 2010 Duncan Coutts <duncan@haskell.org> * Rearrange the code for the world file feature Better better organisation of concerns for it to be in the Install module rather than in Main which is mostly concerned with command line handling. M ./cabal-install/Distribution/Client/Install.hs -2 +25 M ./cabal-install/Distribution/Client/World.hs -42 +60 M ./cabal-install/Main.hs -19 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 9 20:24:57 PDT 2010 Duncan Coutts <duncan@haskell.org> * Update world file entries ignoring version constraints Otherwise it is easy to add impossible constraints to the world file. cabal install 'foo > 1' && cabal install 'foo < 1' Would give us a world file with both constraints. M ./cabal-install/Distribution/Client/World.hs -5 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 9 20:27:36 PDT 2010 Duncan Coutts <duncan@haskell.org> * Misc minor tweaks in Main 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... Sun May 9 20:27:56 PDT 2010 Duncan Coutts <duncan@haskell.org> * A bunch of TODOs for the Install module M ./cabal-install/Distribution/Client/Install.hs +14 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 9 20:28:48 PDT 2010 Duncan Coutts <duncan@haskell.org> * Update a coupld copyright and maintainer notes M ./cabal-install/Distribution/Client/Install.hs -2 +4 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 9 20:30:51 PDT 2010 Duncan Coutts <duncan@haskell.org> * Workaround for 'cabal install world' problem with empty world file The current dep resolver does not like an empty set of targets along with a non-empty set of constraints. M ./cabal-install/Distribution/Client/Dependency.hs -1 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 9 20:40:13 PDT 2010 Duncan Coutts <duncan@haskell.org> * Bump version to 0.9.1 New world file feature 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 9 22:48:24 PDT 2010 Duncan Coutts <duncan@haskell.org> * Remove redundant dry-run support from world file code M ./cabal-install/Distribution/Client/Install.hs -2 +1 M ./cabal-install/Distribution/Client/World.hs -11 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 17 03:38:49 PST 2010 Duncan Coutts <duncan@haskell.org> * Use non-Char8 ByteString.readFile for reading 00-index.tar.gz Was showing up on windows as an error decompressing after cabal update. Thanks to Tamar Christina for reporting and helping track down the bug. M ./cabal-install/Distribution/Client/Update.hs -2 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 10 20:09:41 PDT 2010 Duncan Coutts <duncan@haskell.org> * Add initial internal support for more kinds of available package Previously only named packages from a remote package archive, or the unpacked package in the current directory. Now also add unpacked packages in particular directories, local tarballs and remote tarballs. No support in the user interface or dep planning yet. M ./cabal-install/Distribution/Client/Configure.hs -2 +2 M ./cabal-install/Distribution/Client/Fetch.hs -1 +3 M ./cabal-install/Distribution/Client/Install.hs -19 +50 M ./cabal-install/Distribution/Client/Types.hs -4 +8 M ./cabal-install/Distribution/Client/Unpack.hs -13 +32 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 17 04:13:36 PDT 2010 Duncan Coutts <duncan@haskell.org> * In fetch code, move dep resolution into separate function M ./cabal-install/Distribution/Client/Fetch.hs -36 +66 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 17 04:16:24 PDT 2010 Duncan Coutts <duncan@haskell.org> * Rearrange dependency resolver code slightly M ./cabal-install/Distribution/Client/Dependency.hs -28 +17 M ./cabal-install/Distribution/Client/Install.hs -5 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue May 18 05:53:57 PDT 2010 Duncan Coutts <duncan@haskell.org> * Add a simplistic resolver for available packages that ignores dependencies Suitable for cabal fetch/unpack but not for installation. M ./cabal-install/Distribution/Client/Dependency.hs -3 +99 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue May 18 05:55:09 PDT 2010 Duncan Coutts <duncan@haskell.org> * Use the simplistic available package resolver in cabal fetch Not yet connected up to the user interface. M ./cabal-install/Distribution/Client/Fetch.hs -19 +41 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu May 27 17:35:08 PDT 2010 Duncan Coutts <duncan@haskell.org> * Add cabal fetch --no-deps and --dry-run flags Allows fetching one or more packages but without fetching their dependencies and thus not requiring that a consistent install plan can be found. On the other hand --no-deps means that there is no guarantee that the fetched packages can actually be installed. M ./cabal-install/Distribution/Client/Fetch.hs -19 +31 M ./cabal-install/Distribution/Client/Setup.hs -6 +47 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... Thu May 27 18:15:23 PDT 2010 Duncan Coutts <duncan@haskell.org> * Use new simplistic package resolver for cabal unpack M ./cabal-install/Distribution/Client/Unpack.hs -36 +39 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri May 28 13:03:26 PDT 2010 Duncan Coutts <duncan@haskell.org> * Minor tweaks in haddock code M ./cabal-install/Distribution/Client/Haddock.hs -4 +8 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 31 05:14:22 PDT 2010 Duncan Coutts <duncan@haskell.org> * Bump version to 0.9.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... Mon May 31 06:03:06 PDT 2010 Duncan Coutts <duncan@haskell.org> * Disable cabal upgrade and add cabal install --upgrade-dependencies cabal upgrade now gives an error message telling people to use install or, if they know what they're doing, install --upgrade-dependencies M ./cabal-install/Distribution/Client/Install.hs -45 +16 M ./cabal-install/Distribution/Client/Setup.hs -1 +10 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 Jun 14 14:35:36 PDT 2010 Duncan Coutts <duncan@haskell.org> * Do not add lower case .hs files as modules in cabal init There's still something wrong with the recursive dir traversal. It fails in some large cases. M ./cabal-install/Distribution/Client/Init/Heuristics.hs -2 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Oct 10 13:41:58 PDT 2010 Duncan Coutts <duncan@haskell.org> * Simplify the bash command completion Fixes #741. Patch contributed by Jan Braun <janbraun@gmx.net> M ./cabal-install/bash-completion/cabal -107 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Sep 1 14:03:51 PDT 2010 Duncan Coutts <duncan@haskell.org> * Add a TODO about fetch --constraint flags M ./cabal-install/Distribution/Client/Fetch.hs +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Oct 16 12:28:16 PDT 2010 Duncan Coutts <duncan@haskell.org> * Update to use Cabal-1.10.x M ./cabal-install/Distribution/Client/SetupWrapper.hs -3 +4 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 Oct 26 13:23:43 PDT 2010 Dmitry Astapov <dastapov@gmail.com> * Added GZipUtils to handle .tar files with the same code as .tar.gz A ./cabal-install/Distribution/Client/GZipUtils.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... Tue Oct 26 14:26:06 PDT 2010 Dmitry Astapov <dastapov@gmail.com> * Use "maybeDecompress" to handle broken proxies that transparenty decompress network streams. Closes #622, #686. Cabal update could fail in some cases, see http://trac.haskell.org/http/ticket/109283 M ./cabal-install/Distribution/Client/IndexUtils.hs -2 +2 M ./cabal-install/Distribution/Client/Tar.hs -2 +3 M ./cabal-install/Distribution/Client/Update.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Wed Oct 27 02:50:34 PDT 2010 Duncan Coutts <duncan@haskell.org> * Add an extra note about the http proxy decompression issue M ./cabal-install/Distribution/Client/GZipUtils.hs +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 23 09:09:57 PST 2010 Duncan Coutts <duncan@haskell.org> * Bump time package dependency for ghc-7 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 Nov 23 09:25:16 PST 2010 Duncan Coutts <duncan@haskell.org> * Update dependencies in the boostrap.sh script M ./cabal-install/bootstrap.sh -6 +9 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 23 09:31:24 PST 2010 Duncan Coutts <duncan@haskell.org> * Increase default HTTP package version in bootstrap script M ./cabal-install/bootstrap.sh -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 23 09:43:28 PST 2010 Duncan Coutts <duncan@haskell.org> * Bump upper bounds on core packages for ghc-7 M ./cabal-install/cabal-install.cabal -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Nov 23 09:46:41 PST 2010 Duncan Coutts <duncan@haskell.org> * Fix time version regexp in bootstrap script Sigh, having to use shell script and regexps... M ./cabal-install/bootstrap.sh -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Jan 17 06:49:00 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Preserve executable permissions on unpack M ./cabal-install/Distribution/Client/Tar.hs -4 +11 A ./cabal-install/Distribution/Compat/FilePerms.hs View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Jan 22 05:53:39 PST 2011 Jens Petersen <petersen@haskell.org> * fix a comment typo of 'according' M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 23 12:21:00 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Change my email address M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -1 +1 M ./cabal-install/Distribution/Client/IndexUtils.hs -1 +1 M ./cabal-install/Distribution/Client/InstallPlan.hs -1 +1 M ./cabal-install/Distribution/Client/Tar.hs -1 +1 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 Jun 30 14:37:36 PDT 2010 josh.hoyt@galois.com * Add an --only-dependencies flag to "install" (see ticket #697) This flag installs only the dependencies of the packages that were explicitly mentioned on the command line. This is useful for using cabal-install in development environments, where the developer needs the dependencies to build the package in development, but does not yet want to install the package itself. M ./cabal-install/Distribution/Client/Install.hs -8 +36 M ./cabal-install/Distribution/Client/InstallPlan.hs +15 M ./cabal-install/Distribution/Client/Setup.hs +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 09:19:56 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Change position of --only-dependencies in --help listing Move it next to the --upgrade-dependencies flag M ./cabal-install/Distribution/Client/Setup.hs -6 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Nov 8 10:49:27 PST 2010 Vo Minh Thu <noteed@gmail.com> * cabal report uses the correct URIs and authenticates with username and passwords flags M ./cabal-install/Distribution/Client/BuildReports/Upload.hs -8 +11 M ./cabal-install/Distribution/Client/Config.hs -4 +17 M ./cabal-install/Distribution/Client/Setup.hs -6 +52 M ./cabal-install/Distribution/Client/Upload.hs -20 +33 M ./cabal-install/Main.hs -3 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jan 23 11:37:06 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Change the interface of the two package index search functions Move the ambiguity checking to the only use site Both normal and substring search now return [(PackageName, [pkg])] M ./cabal-install/Distribution/Client/IndexUtils.hs -7 +17 M ./cabal-install/Distribution/Client/List.hs -3 +8 M ./cabal-install/Distribution/Client/PackageIndex.hs -16 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 08:51:51 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Remove unnecessary Maybe from LocalUnpackedPackage dir filepath We can just use "." instead of Nothing M ./cabal-install/Distribution/Client/Configure.hs -1 +1 M ./cabal-install/Distribution/Client/Install.hs -2 +2 M ./cabal-install/Distribution/Client/Types.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 10:34:46 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Split out a FetchUtils module And rename fetchPackage function to the more accurate fetchRepoTarball M ./cabal-install/Distribution/Client/Fetch.hs -103 +13 A ./cabal-install/Distribution/Client/FetchUtils.hs M ./cabal-install/Distribution/Client/Install.hs -3 +3 M ./cabal-install/Distribution/Client/List.hs -1 +1 M ./cabal-install/Distribution/Client/Unpack.hs -3 +3 M ./cabal-install/Distribution/Client/Update.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... Sun Feb 13 10:35:29 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Rename AvailablePackageSource to PackageLocation And remove import list for Types module, just import it all M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -2 M ./cabal-install/Distribution/Client/Configure.hs -2 M ./cabal-install/Distribution/Client/Fetch.hs -3 M ./cabal-install/Distribution/Client/IndexUtils.hs -3 M ./cabal-install/Distribution/Client/Install.hs -8 +2 M ./cabal-install/Distribution/Client/Types.hs -4 +22 M ./cabal-install/Distribution/Client/Unpack.hs -4 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 10:50:06 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Separate WorldPkgInfo type from UnresolvedDependency type Currently just a renamed copy of UnresolvedDependency but called WorldPkgInfo and defined in the World module. This is in preparation to remove all other uses of the UnresolvedDependency type. M ./cabal-install/Distribution/Client/Install.hs -3 +7 M ./cabal-install/Distribution/Client/Types.hs -58 +1 M ./cabal-install/Distribution/Client/World.hs -19 +87 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 11:32:18 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add a local path and type param to PackageLocation So we can now use PackageLocation FilePath or Maybe FilePath to describe what we know about the fetch status of package tarballs. M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -2 +2 M ./cabal-install/Distribution/Client/Fetch.hs -2 +2 M ./cabal-install/Distribution/Client/FetchUtils.hs -6 +7 M ./cabal-install/Distribution/Client/IndexUtils.hs -1 +1 M ./cabal-install/Distribution/Client/Install.hs -4 +4 M ./cabal-install/Distribution/Client/List.hs -1 +2 M ./cabal-install/Distribution/Client/Types.hs -6 +10 M ./cabal-install/Distribution/Client/Unpack.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 11:39:11 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add a few more Tar Entries utilities M ./cabal-install/Distribution/Client/Tar.hs -14 +39 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 11:40:34 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add a fetchPackage utility Works for any package identified by PackageLocation rather than just for repo packages. M ./cabal-install/Distribution/Client/FetchUtils.hs -2 +37 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 11:41:50 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add a new module for handling user targets This will allow us to increase the range of targets that cabal commands can support. The new ones are local directory targets, local cabal files, local tarballs and remote tarballs by URL. Also a better way of doing the special "world" target. M ./cabal-install/Distribution/Client/Dependency/Types.hs +1 A ./cabal-install/Distribution/Client/Targets.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... Sun Feb 13 11:46:27 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Partial rewrite of cabal list and info commands The new user target system requires a change in how cabal info works. Instead of just giving package names and looking them up in the available package index, we can now specify names with versions or version constraints which means we want the info to be about that version in particular. We now list many installed and available versions and mark which ones are preferred or not. Also fix a bug for packages that are only installed, not available. M ./cabal-install/Distribution/Client/List.hs -89 +243 M ./cabal-install/Main.hs -2 +6 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 11:50:09 PST 2011 Duncan Coutts <duncan@community.haskell.org> * New interface to the dep resolver that allows modular policy construction Allows shorter and clearer code for the various ways the resolver is used. M ./cabal-install/Distribution/Client/Dependency.hs -64 +271 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 12:01:09 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Tweak implementation of fetchRepoTarball M ./cabal-install/Distribution/Client/FetchUtils.hs -15 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 12:08:24 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Insert a separate fetch stage to the install process Helps to clarify things now that different kinds of packages are fetched in different ways. M ./cabal-install/Distribution/Client/FetchUtils.hs +22 M ./cabal-install/Distribution/Client/Install.hs -50 +46 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 14:49:55 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Use the new modular dep resolver interface in the various commands Also minor tweak to InstallPlan.remove M ./cabal-install/Distribution/Client/Configure.hs -43 +25 M ./cabal-install/Distribution/Client/Fetch.hs -95 +100 M ./cabal-install/Distribution/Client/Install.hs -191 +104 M ./cabal-install/Distribution/Client/InstallPlan.hs -8 +9 M ./cabal-install/Distribution/Client/Unpack.hs -70 +56 M ./cabal-install/Main.hs -18 +17 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 14:50:41 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Remove now-unused utilities from World module No longer needed now that the world target is handled via UserTarget. M ./cabal-install/Distribution/Client/World.hs -28 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 15:00:02 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Remove code related to the dep resolver that is now redundant M ./cabal-install/Distribution/Client/Dependency.hs -88 +4 M ./cabal-install/Distribution/Client/IndexUtils.hs -54 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 15:00:16 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Remove UnresolvedDependency type M ./cabal-install/Distribution/Client/Types.hs -14 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 15:41:15 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Adjust the amount of output for the -v verbosity level in a few places For several commands, including install the -v verbosity level had far too much useless internall stuff in it. Reduced the amount of output from configuring the compiler, getting installed package and the dependency planner. The extra detail is still available via -v3. M ./cabal-install/Distribution/Client/Configure.hs -3 +5 M ./cabal-install/Distribution/Client/Fetch.hs -2 +2 M ./cabal-install/Distribution/Client/IndexUtils.hs -2 +7 M ./cabal-install/Distribution/Client/Install.hs -2 +2 M ./cabal-install/Main.hs -7 +15 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 13 18:43:54 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Bump version to 0.9.6 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 27 04:50:08 PST 2011 Duncan Coutts <duncan@haskell.org> * Partial fix for handling multiple installed instances of same package version Previously when multiple instances of the same package are installed, e.g. in global and user dbs, we would often end up selecting the wrong instance. Now we select the user one consistently which will solve the problem in most (but not all) cases. M ./cabal-install/Distribution/Client/IndexUtils.hs -9 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 06:52:22 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Update copyright date 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 27 07:16:28 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Update changelog for 0.10.0 release M ./cabal-install/changelog +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 09:05:53 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Update versions in README M ./cabal-install/README -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 09:52:40 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add missing module to other-modules 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 Feb 27 07:24:23 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add support for BSD fetch to bootstrap script On FreeBSD fetch is installed by default, unlike wget or curl. M ./cabal-install/bootstrap.sh -1 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 07:26:37 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Only look at global packages when doing ./bootstrap.sh --global Should fix ticket #796 M ./cabal-install/bootstrap.sh -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 08:57:13 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Minor tweaks to bootstrap script When using curl, fail better on HTTP errors. Also remove some dead code. M ./cabal-install/bootstrap.sh -19 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 08:58:12 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Update dependencies in bootstrap script Works with ghc-6.12 and ghc-7.0 M ./cabal-install/bootstrap.sh -21 +24 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 09:54:55 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Require Cabal >= 1.10.1 It contains an important bug fix for some platforms, notably OSX M ./cabal-install/bootstrap.sh -1 +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 Feb 27 06:52:45 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Bump version to 0.10.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 Feb 27 06:53:02 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Add source-repository this entry M ./cabal-install/cabal-install.cabal +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Feb 27 09:55:35 PST 2011 Duncan Coutts <duncan@community.haskell.org> * In bootstrap script, do Cabal before other deps So that the others can use the new Cabal for their Setup.hs M ./cabal-install/bootstrap.sh -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Mar 4 14:13:07 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Fix silly bug in cabal configure. Ticket #805. I made a mistake during the recent refactoring work and was using the dependency planner in the wrong way. The planner was being given the available source packages and duely picking them to satisfy dependencies, but for configure we're supposed to assume that all dependencies are installed already. M ./cabal-install/Distribution/Client/Configure.hs -3 +7 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Mar 4 15:39:56 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Unbreak the world target I'd accidentally left out the world target from the parsing phase of the new user target handling system, so cabal install world did not work. Now added to the target parser. M ./cabal-install/Distribution/Client/Targets.hs -4 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Mar 15 15:47:21 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Fix username prompting for cabal upload Fixes ticket #810 M ./cabal-install/Distribution/Client/Config.hs -1 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Mar 8 11:23:23 PST 2011 Duncan Coutts <duncan@haskell.org> tagged 0.10.0 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Fri Mar 4 14:16:05 PST 2011 Duncan Coutts <duncan@community.haskell.org> * Change the terminology used in source code for available/source packages Rather than 'available' packages, the source now refers consistently to 'source' packages. This is a bit clearer. M ./cabal-install/Distribution/Client/BuildReports/Storage.hs -2 +2 M ./cabal-install/Distribution/Client/Configure.hs -19 +19 M ./cabal-install/Distribution/Client/Dependency.hs -39 +47 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -63 +68 M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -43 +43 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -13 +13 M ./cabal-install/Distribution/Client/Dependency/Types.hs -2 +2 M ./cabal-install/Distribution/Client/Fetch.hs -10 +10 M ./cabal-install/Distribution/Client/IndexUtils.hs -10 +10 M ./cabal-install/Distribution/Client/Init/Heuristics.hs -4 +4 M ./cabal-install/Distribution/Client/Install.hs -23 +25 M ./cabal-install/Distribution/Client/InstallPlan.hs -10 +10 M ./cabal-install/Distribution/Client/InstallSymlink.hs -2 +2 M ./cabal-install/Distribution/Client/List.hs -80 +81 M ./cabal-install/Distribution/Client/Setup.hs -1 +1 M ./cabal-install/Distribution/Client/Targets.hs -10 +10 M ./cabal-install/Distribution/Client/Types.hs -7 +7 M ./cabal-install/Distribution/Client/Unpack.hs -6 +6 M ./cabal-install/Distribution/Client/Update.hs -4 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 06:32:12 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Cosmetic: use PackageId rather than PackageIdentifier M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -22 +22 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 06:42:32 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Eliminate local definition of utility M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -4 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Mar 26 10:16:58 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Generalise the constraint set ADT in a couple ways We now track target packages and only require constraints on those targets to be satisfiable. This allows us to overconstrain packages that we do not care about, which is useful for excluding broken packages. We also now have a more general way of specifying constraints. Previously constraints were specified as the conjunction of a version range predicate and an optional installed constraint. This form made it impossible to express constraints such as "exclude this source package". Constraints for a package name are now specified simply by a function predicate on the package version and installed/source state. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -21 +27 M ./cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs -160 +445 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -3 +4 M ./cabal-install/Distribution/Client/PackageIndex.hs -1 +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 07:57:56 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Update the solver to use the new target tracking The constraint set ADT now needs to be told which targets we are interested in, rather than assuming anything we constrain might be a target. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -9 +40 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 08:37:49 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Eliminate TaggedDependency type from solver code M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -20 +21 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -11 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 09:40:48 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Distinguish installed constraint error messages M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -3 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 10:57:33 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Prune impossible packages as a solver pre-pass There are many packages that can never be successfully configured and by pruning them early we reduce the number of choices for the solver later (which is good since the solver does no backtracking when it makes bad choices). This relies on two recent features: 1. we can now express constraints that exclude a particular source package and 2. that we can exclude packages without needing to know whether or not they will ever be needed. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -9 +62 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 11:02:06 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Log package exclusions due to top level constraints M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -4 +5 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 11:02:52 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Tweak to conflict constraint error message M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -2 +2 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 15:37:43 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Remove a module dependency to avoid cyclic imports M ./cabal-install/Distribution/Client/Fetch.hs -1 +3 M ./cabal-install/Distribution/Client/Install.hs -1 +3 M ./cabal-install/Distribution/Client/List.hs -1 +2 M ./cabal-install/Distribution/Client/Targets.hs -11 +5 M ./cabal-install/Distribution/Client/Unpack.hs -2 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Mar 27 16:52:54 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Rename the constructors of PackageConstraint to be more consistent M ./cabal-install/Distribution/Client/Configure.hs -2 +2 M ./cabal-install/Distribution/Client/Dependency.hs -2 +2 M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -4 +4 M ./cabal-install/Distribution/Client/Dependency/Types.hs -3 +3 M ./cabal-install/Distribution/Client/Install.hs -2 +2 M ./cabal-install/Distribution/Client/List.hs -1 +1 M ./cabal-install/Distribution/Client/Targets.hs -4 +4 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue Mar 29 02:57:10 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Add support for source constraints to the solver M ./cabal-install/Distribution/Client/Dependency/TopDown.hs +23 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -5 +8 M ./cabal-install/Distribution/Client/Dependency/Types.hs +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Apr 14 13:47:29 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Change the use of the InstalledConstraint type and enhance solver logging Now log when things get excluded due to installed and source constraints. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -59 +83 M ./cabal-install/Distribution/Client/Dependency/TopDown/Types.hs -2 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Thu Apr 14 13:52:40 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Add command line support for installed, source and flag constraints e.g. --constraint='foo source' --constraint='baz installed' --constraint='bar +this -that' M ./cabal-install/Distribution/Client/Configure.hs -2 +5 M ./cabal-install/Distribution/Client/Install.hs -2 +1 M ./cabal-install/Distribution/Client/Setup.hs -6 +20 M ./cabal-install/Distribution/Client/Targets.hs -9 +92 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Apr 18 04:05:29 PDT 2011 Thomas Tuegel <ttuegel@gmail.com> * Install phase pulls in test suite dependencies when necessary. M ./cabal-install/Distribution/Client/Install.hs -4 +17 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Apr 18 14:12:11 PDT 2011 Duncan Coutts <duncan@haskell.org> * Fix a case in the new solver pruning pass It is actually possible for pruning to eliminate required packages because it's possible for it to propagate all the way up to one of the initial targets. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -2 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon Apr 18 14:14:36 PDT 2011 Duncan Coutts <duncan@haskell.org> * Distinguish the various impossible errors in the solver Will make tracking down problems easier in future. M ./cabal-install/Distribution/Client/Dependency/TopDown.hs -10 +12 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Tue May 3 07:49:32 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Fix bug where contraints where lost for case insensitive package matches E.g. cabal install cabal-1.8.0.6 would actually install the latest version instead, because when 'cabal' got corrected to 'Cabal' the associated constraint 'cabal == 1.8.0.6' was not converted to 'Cabal == 1.8.0.6'. M ./cabal-install/Distribution/Client/Targets.hs -1 +10 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat Apr 30 04:17:30 PDT 2011 Ben Millwood <haskell@benmachine.co.uk> * Correct spelling surpress -> suppress M ./cabal-install/Distribution/Client/Targets.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun May 15 09:38:22 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Fix formatting of cabal init BSD copyright declaration M ./cabal-install/Distribution/Client/Init/Licenses.hs -1 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 16 01:34:29 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Generate lower case field names in cabal init M ./cabal-install/Distribution/Client/Init.hs -22 +22 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 16 17:20:50 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Add a cabal init question about whether to generate comments Users will typically only want this the first time they use cabal init. M ./cabal-install/Distribution/Client/Init.hs +21 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 16 17:23:02 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Adjust the cabal init interactive prompt string M ./cabal-install/Distribution/Client/Init.hs -3 +3 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Mon May 16 17:31:27 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Adjust the initial comment in cabal files generated by cabal init Use slightly longer lines and a somewhat more terse comment. Also use a new shorter and hopefully stable URL for the user guide. M ./cabal-install/Distribution/Client/Init.hs -3 +11 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sat May 21 15:52:03 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * cabal init: various UI tweaks and changes to the generated .cabal files - Add a default "(none)" option for license and category. There are now no questions with no default except for the lib/exe question. For throwaway packages user can just keep hitting enter and get something sensible. - Prune the list of suggested licenses (remove unversioned GPL, LGPL) - Don't include extra-source-files or build-tools when they would be empty - Improve the wording of the generated documentation for lib/exe fields M ./cabal-install/Distribution/Client/Init.hs -30 +48 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jun 19 05:22:16 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Move the Cabal library into a subdir At the top level we now have cabal/ and cabal-install/ ./Cabal.cabal -> ./cabal/Cabal.cabal ./DefaultSetup.hs -> ./cabal/DefaultSetup.hs ./Distribution -> ./cabal/Distribution ./LICENSE -> ./cabal/LICENSE ./Language -> ./cabal/Language ./Makefile -> ./cabal/Makefile ./README -> ./cabal/README ./Setup.hs -> ./cabal/Setup.hs ./changelog -> ./cabal/changelog ./doc -> ./cabal/doc ./prologue.txt -> ./cabal/prologue.txt ./runTests.sh -> ./cabal/runTests.sh ./tests -> ./cabal/tests A ./cabal/ View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2... Sun Jun 19 05:23:02 PDT 2011 Duncan Coutts <duncan@community.haskell.org> * Add a short top-level README A ./README View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
participants (1)
-
Duncan Coutts