Thu Feb 21 22:30:41 CET 2008 Lennart Kolmodin <[EMAIL PROTECTED]>
* Fix typo
Thu Feb 21 22:31:26 CET 2008 Lennart Kolmodin <[EMAIL PROTECTED]>
* When a package seems ok, say so
Thu Feb 21 22:32:01 CET 2008 Lennart Kolmodin <[EMAIL PROTECTED]>
* Make the qa check return an exit code reporting the status
New patches:
[Fix typo
Lennart Kolmodin <[EMAIL PROTECTED]>**20080221213041] {
hunk ./Hackage/Check.hs 62
- putStrLn "These warnings may cause trouble when distribution the package:"
+ putStrLn "These warnings may cause trouble when distributing the package:"
}
[When a package seems ok, say so
Lennart Kolmodin <[EMAIL PROTECTED]>**20080221213126] {
hunk ./Hackage/Check.hs 18
-import Control.Monad ( unless )
+import Control.Monad ( when, unless )
hunk ./Hackage/Check.hs 78
+ when (null packageChecks) $ do
+ putStrLn "No errors or warnings could be found in the package."
+
+
}
[Make the qa check return an exit code reporting the status
Lennart Kolmodin <[EMAIL PROTECTED]>**20080221213201] {
hunk ./Hackage/Check.hs 26
-check :: Verbosity -> IO ()
+check :: Verbosity -> IO Bool
hunk ./Hackage/Check.hs 81
+ return (null packageChecks)
hunk ./Main.hs 205
- Check.check (fromFlag verbosityFlag)
+ allOk <- Check.check (fromFlag verbosityFlag)
+ if allOk
+ then exitWith ExitSuccess
+ else exitWith (ExitFailure 1)
}
Context:
[Naive implementation of 'cabal check'
Lennart Kolmodin <[EMAIL PROTECTED]>**20080221204820
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.
]
[Replace RepoIndex type with PackageIndex PkgInfo
Duncan Coutts <[EMAIL PROTECTED]>**20080220212848
and adapt to the minor finalisePackageDescription change
]
[Use a dependency graph rather than a list when installing packages
Duncan Coutts <[EMAIL PROTECTED]>**20080220110637
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.
]
[Update to Cabal lib api changes
Duncan Coutts <[EMAIL PROTECTED]>**20080215131142
The InstalledPackageIndex replaces our Hackage.LocalIndex module
]
[Use setupMessage for consistency in downloading message
Duncan Coutts <[EMAIL PROTECTED]>**20080213193346]
[-Wall clean
Duncan Coutts <[EMAIL PROTECTED]>**20080213193325]
[Bump version and required Cabal version
Duncan Coutts <[EMAIL PROTECTED]>**20080211012151
Due to recent Cabal api changes
]
[Fixed imports to correspond to the latest arrangement of Distribution.PackageDescription.
[EMAIL PROTECTED]
[Rename ResolvedPackage to ResolvedDependency
Duncan Coutts <[EMAIL PROTECTED]>**20080120144754]
[Make the configure command take the defaults from the config file
Duncan Coutts <[EMAIL PROTECTED]>**20080119170358
Just like the install command has always done. This makes them consistent.
So by default that means cabal configure uses --user --prefix=$HOME/.cabal
]
[Note in the README than the unix package is not a dependency
Duncan Coutts <[EMAIL PROTECTED]>**20080119170254]
[Fix a warning.
Duncan Coutts <[EMAIL PROTECTED]>**20080119170155
All the other warnings are instances of ghc bug #1148.
]
[Fix "cabal list" with no package specified
Duncan Coutts <[EMAIL PROTECTED]>**20080119155219]
[Treat package names given on the command line case insenitively
Duncan Coutts <[EMAIL PROTECTED]>**20080118230004
Implements feature request #167.
]
[Add IndexUtils with functions to disambiguate packaage names
Duncan Coutts <[EMAIL PROTECTED]>**20080118225545
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.
]
[Remove unused listInstalledPackages, replaced by LocalIndex.read
Duncan Coutts <[EMAIL PROTECTED]>**20080118221309]
[Change Dependency module to use the LocalIndex ADT
Duncan Coutts <[EMAIL PROTECTED]>**20080118220703
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.
]
[Update copyright and docs for RepoIndex
Duncan Coutts <[EMAIL PROTECTED]>**20080118220013
Added my copyright as I've almost completely rewritten the module.
]
[Add Hackage.LocalIndex module as an index of installed packages
Duncan Coutts <[EMAIL PROTECTED]>**20080118215953
Very much like the RepoIndex module but only holds package ids at the moment
rather that full InstalledPackageInfo records that we'd really prefer.
]
[Rename Hackage.Index -> Hackage.RepoIndex
Duncan Coutts <[EMAIL PROTECTED]>**20080118215132
In preperation to add Hackage.LocalIndex module
]
[Trivial change to utils
Duncan Coutts <[EMAIL PROTECTED]>**20080118214236]
[Disable a particularly slow invariant check
Duncan Coutts <[EMAIL PROTECTED]>**20080117200539]
[Move package substring searching into the Index module and use it in List
Duncan Coutts <[EMAIL PROTECTED]>**20080117200439
Not much faster but rather cleaner.
]
[Make a proper RepoIndex ADT
Duncan Coutts <[EMAIL PROTECTED]>**20080117175854
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.
]
[Add Utils module, tidy imports
Duncan Coutts <[EMAIL PROTECTED]>**20080117175709]
[Split ParseUtils module out of Utils module
Duncan Coutts <[EMAIL PROTECTED]>**20080117173017]
[Have command line args override saved config not the other way around
Duncan Coutts <[EMAIL PROTECTED]>**20080115200258
Fixes setting the --prefix from the command line which was previously being
ignored in favour of the default prefix from the config file.
]
[Set the useragent string to be "cabal-install/$version"
Duncan Coutts <[EMAIL PROTECTED]>**20080115160347
eg, currently it is "cabal-install/0.4.2"
]
[Don't verbosely display the http conversation chatter by default
Duncan Coutts <[EMAIL PROTECTED]>**20080115160233
Though do display it at deafening verbosity level.
]
[Use proxy port number rather than ignoring it
Duncan Coutts <[EMAIL PROTECTED]>**20080115151033]
[Refactor proxy handling yet again
Duncan Coutts <[EMAIL PROTECTED]>**20080115150933
This time to better handle parsing and warning about invalid proxy uris
]
[Remove unused var
Duncan Coutts <[EMAIL PROTECTED]>**20080115150838]
[Use commandDefaultFlags = mempty rather than commandAddActionWithEmptyFlags
Duncan Coutts <[EMAIL PROTECTED]>**20080115150725
Simpler and simplifies the Command api in the Cabal lib
]
[Fix compilation on windows
Duncan Coutts <[EMAIL PROTECTED]>**20080114143456
Silly #ifdefs making things harder to test.
]
[After refactoring the http proxy code we don't need the unix package
Duncan Coutts <[EMAIL PROTECTED]>**20080114142301
Which was just being used for an exception-free version of getEnv but we
have to cope with exceptions anyway for the Win32 registry.
]
[Set the user install flag when restoring saved config
Duncan Coutts <[EMAIL PROTECTED]>**20080114141313]
[Allow finding the proxy to fail without failing overall
Duncan Coutts <[EMAIL PROTECTED]>**20080113201627
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.
]
[Fix getting verbosity flags
Duncan Coutts <[EMAIL PROTECTED]>**20080111025634]
[Depend on latest development version of Cabal lib
Duncan Coutts <[EMAIL PROTECTED]>**20080110203711]
[Remove redundant code an re-enable accidentally disabled code
Duncan Coutts <[EMAIL PROTECTED]>**20080110180137]
[Significantly refactor configuration handling
Duncan Coutts <[EMAIL PROTECTED]>**20080110175634
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.
]
[Added support for users behind proxy servers, reading system settings from the env var on unix or registry on windows
<[EMAIL PROTECTED]>**20071221201500]
[Added upgrade command
[EMAIL PROTECTED]
cabal upgrade installs the latest version of any currently installed
package.
]
[improved error handling for multiple installs
[EMAIL PROTECTED]
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.
]
[Initial attempt at command line completion
Lennart Kolmodin <[EMAIL PROTECTED]>**20071219215747]
[Added dependency on random. Needed by Hackage.Upload.
[EMAIL PROTECTED]
[Improve 'cabal info pkg' message when there is nothing to install
Duncan Coutts <[EMAIL PROTECTED]>**20071218004724
"All requested packages already installed. Nothing to do."
rather than:
"These packages would be installed:\n"
followed by ... nothing.
]
[Make logging and verboisty a bit more consistent
Duncan Coutts <[EMAIL PROTECTED]>**20071218004604
Use the Distribution.Simple.Utils functions and eliminate use of printf
]
[Don't append '.' to filename in message. Make config file end in a new line.
Duncan Coutts <[EMAIL PROTECTED]>**20071217234934]
[Get the saved hackage username and password from the config file
Duncan Coutts <[EMAIL PROTECTED]>**20071217234649
rather than from the old ~/.cabal-upload/auth file.
Now uses ~/.cabal/config with:
hackage-username:
hackage-password:
]
[Add Bjorn Bringert to authors and copyright list
Duncan Coutts <[EMAIL PROTECTED]>**20071217224227
Since much recent cabal-install work is his and he wrote cabal-upload which
was just integrated.
]
[Remove unnecessary use of a type alias
Duncan Coutts <[EMAIL PROTECTED]>**20071217223913]
[Initial integration of upload feature
Duncan Coutts <[EMAIL PROTECTED]>**20071217223748
It still uses it's own config file, but now uses the same command line stuff
]
[Fix usage message, swap program and sub-command names
Duncan Coutts <[EMAIL PROTECTED]>**20071217223620]
[Remove redundant parameters
Duncan Coutts <[EMAIL PROTECTED]>**20071217211141]
[Add the cabal-setup commands: configure, build etc
Duncan Coutts <[EMAIL PROTECTED]>**20071217210621
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.
]
[Add Upload module direct copy of cabal-upload
Duncan Coutts <[EMAIL PROTECTED]>**20071217205813]
[Add a verbosity flag to the info list update and fetch commands
Duncan Coutts <[EMAIL PROTECTED]>**20071217190035]
[Add command listing support
Duncan Coutts <[EMAIL PROTECTED]>**20071217185912
first step to shell command line completion
]
[installCommand only ever needs to use defaultProgramConfiguration
Duncan Coutts <[EMAIL PROTECTED]>**20071217185811
So don't bother making it a parameter
]
[Add in more global help text like that of Setup.hs
Duncan Coutts <[EMAIL PROTECTED]>**20071217185605]
[Replace command line handling
Duncan Coutts <[EMAIL PROTECTED]>**20071215194603
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.
]
[Read/write binary files using ByteString without .Char8 modules
Duncan Coutts <[EMAIL PROTECTED]>**20071022222115
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.
]
[Remove old non-existant copyright file from extra-source-files
Duncan Coutts <[EMAIL PROTECTED]>**20071021174954
We only have one LICENCE file
]
[TAG 0.4.0
Duncan Coutts <[EMAIL PROTECTED]>**20071021143856]
Patch bundle hash:
1d48c73dd8645a51421dbd5aeae98e1844d2f346
_______________________________________________
cabal-devel mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cabal-devel