Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/hashed-storage/files/
Date: Wed, 03 Aug 2016 07:36:34
Message-Id: 1470208914.2324c9846d5dfd102ddfc0db586a144fcdbfe941.monsieurp@gentoo
1 commit: 2324c9846d5dfd102ddfc0db586a144fcdbfe941
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 27 16:53:37 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 07:21:54 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2324c984
7
8 dev-haskell/hashed-storage: remove unused patches
9
10 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
11
12 .../files/hashed-storage-0.5.9-ghc-7.6.patch | 57 ----------------------
13 1 file changed, 57 deletions(-)
14
15 diff --git a/dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch b/dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch
16 deleted file mode 100644
17 index 21baf96..0000000
18 --- a/dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch
19 +++ /dev/null
20 @@ -1,57 +0,0 @@
21 ---- hashed-storage-0.5.9-orig/Storage/Hashed/Tree.hs 2011-10-09 07:47:55.000000000 +1100
22 -+++ hashed-storage-0.5.9/Storage/Hashed/Tree.hs 2012-09-15 00:38:24.233669282 +1000
23 -@@ -41,6 +41,7 @@
24 - import Data.List( union, sort )
25 - import Control.Monad( filterM, liftM )
26 - import Control.Applicative( (<$>) )
27 -+import qualified Control.Exception ( catch, IOException )
28 -
29 - --------------------------------
30 - -- Tree, Blob and friends
31 -@@ -195,7 +196,7 @@
32 - let
33 - subtree (name, sub) =
34 - do let here = path `appendPath` name
35 -- sub' <- (Just <$> unstub sub) `catch` \_ -> return Nothing
36 -+ sub' <- (Just <$> unstub sub) `Control.Exception.catch` \(_ :: Control.Exception.IOException) -> return Nothing
37 - case sub' of
38 - Nothing -> return $ Left [(here, treeHash t_, Nothing)]
39 - Just sub -> do
40 -@@ -204,10 +205,10 @@
41 - Left problems -> Left problems
42 - Right tree -> Right (name, SubTree tree)
43 - badBlob (_, f@(File (Blob s h))) =
44 -- fmap (/= h) (hashFunc f `catch` (\_ -> return NoHash))
45 -+ fmap (/= h) (hashFunc f `Control.Exception.catch` (\(_ :: Control.Exception.IOException) -> return NoHash))
46 - badBlob _ = return False
47 - render (name, f@(File (Blob _ h))) = do
48 -- h' <- (Just <$> hashFunc f) `catch` \_ -> return Nothing
49 -+ h' <- (Just <$> hashFunc f) `Control.Exception.catch` \(_ :: Control.Exception.IOException) -> return Nothing
50 - return (path `appendPath` name, h, h')
51 - subs <- mapM subtree [ x | x@(_, item) <- listImmediate t_, isSub item ]
52 - badBlobs <- filterM badBlob (listImmediate t) >>= mapM render
53 ---- hashed-storage-0.5.9-orig/Storage/Hashed/Darcs.hs 2011-10-09 07:47:55.000000000 +1100
54 -+++ hashed-storage-0.5.9/Storage/Hashed/Darcs.hs 2012-09-15 00:40:02.693038029 +1000
55 -@@ -1,4 +1,4 @@
56 --{-# LANGUAGE BangPatterns #-}
57 -+{-# LANGUAGE BangPatterns, ScopedTypeVariables #-}
58 -
59 - -- | A few darcs-specific utility functions. These are used for reading and
60 - -- writing darcs and darcs-compatible hashed trees.
61 -@@ -10,6 +10,7 @@
62 - import System.Directory( doesFileExist )
63 - import Codec.Compression.GZip( decompress, compress )
64 - import Control.Applicative( (<$>) )
65 -+import qualified Control.Exception ( catch, IOException )
66 -
67 - import qualified Data.ByteString.Char8 as BS8
68 - import qualified Data.ByteString.Lazy.Char8 as BL8
69 -@@ -290,7 +291,7 @@
70 -
71 - darcsPristineRefs :: FileSegment -> IO [Hash]
72 - darcsPristineRefs fs = do
73 -- con <- (darcsParseDir <$> readSegment fs) `catch` \_ -> return []
74 -+ con <- (darcsParseDir <$> readSegment fs) `Control.Exception.catch` \(_ :: Control.Exception.IOException) -> return []
75 - return $! [ hash | (_, _, _, hash) <- con, valid hash ]
76 - where valid NoHash = False
77 - valid _ = True