[commit: packages/Cabal] ghc-head: Don't report that 'unpack' is deprecated (17ec871)

git at git.haskell.org git at git.haskell.org
Mon Aug 26 23:27:26 CEST 2013


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=17ec87101ed95e84808070586efa080aa80a4ae2

>---------------------------------------------------------------

commit 17ec87101ed95e84808070586efa080aa80a4ae2
Author: Duncan Coutts <duncan at community.haskell.org>
Date:   Wed Jun 12 21:00:07 2013 +0100

    Don't report that 'unpack' is deprecated
    
    But it's not listed in the --help output anymore. But there's no
    particular reason we need to force all users familiar with unpack to
    switch to get, when they're just dealing with the case of tarballs.


>---------------------------------------------------------------

17ec87101ed95e84808070586efa080aa80a4ae2
 cabal-install/Main.hs |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/cabal-install/Main.hs b/cabal-install/Main.hs
index 5c9fd69..cf3bf41 100644
--- a/cabal-install/Main.hs
+++ b/cabal-install/Main.hs
@@ -775,10 +775,6 @@ getAction getFlags extraArgs globalFlags = do
 
 unpackAction :: GetFlags -> [String] -> GlobalFlags -> IO ()
 unpackAction getFlags extraArgs globalFlags = do
-  let verbosity = fromFlag (getVerbosity getFlags)
-  notice verbosity $ "The 'unpack' command is deprecated "
-    ++ "and will be removed in a future release. "
-    ++ "Please use 'cabal get' instead."
   getAction getFlags extraArgs globalFlags
 
 initAction :: InitFlags -> [String] -> GlobalFlags -> IO ()





More information about the ghc-commits mailing list