diff options
-rw-r--r-- | Data/OpenPGP.hs | 12 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/control | 12 |
4 files changed, 23 insertions, 9 deletions
diff --git a/Data/OpenPGP.hs b/Data/OpenPGP.hs index a268dff..94bcb6d 100644 --- a/Data/OpenPGP.hs +++ b/Data/OpenPGP.hs | |||
@@ -1093,11 +1093,13 @@ parse_signature_subpacket tag = | |||
1093 | signature_issuer :: Packet -> Maybe String | 1093 | signature_issuer :: Packet -> Maybe String |
1094 | signature_issuer (SignaturePacket {hashed_subpackets = hashed, | 1094 | signature_issuer (SignaturePacket {hashed_subpackets = hashed, |
1095 | unhashed_subpackets = unhashed}) = | 1095 | unhashed_subpackets = unhashed}) = |
1096 | if length issuers > 0 then Just issuer else Nothing | 1096 | case issuers of |
1097 | where IssuerPacket issuer = issuers !! 0 | 1097 | IssuerPacket issuer : _ -> Just issuer |
1098 | issuers = filter isIssuer hashed ++ filter isIssuer unhashed | 1098 | _ -> Nothing |
1099 | isIssuer (IssuerPacket {}) = True | 1099 | where |
1100 | isIssuer _ = False | 1100 | issuers = filter isIssuer hashed ++ filter isIssuer unhashed |
1101 | isIssuer (IssuerPacket {}) = True | ||
1102 | isIssuer _ = False | ||
1101 | signature_issuer _ = Nothing | 1103 | signature_issuer _ = Nothing |
1102 | 1104 | ||
1103 | find_key :: (Packet -> String) -> Message -> String -> Maybe Packet | 1105 | find_key :: (Packet -> String) -> Message -> String -> Maybe Packet |
@@ -4,7 +4,7 @@ else | |||
4 | GHCFLAGS=-Wall -O2 -fno-warn-name-shadowing -XHaskell98 | 4 | GHCFLAGS=-Wall -O2 -fno-warn-name-shadowing -XHaskell98 |
5 | endif | 5 | endif |
6 | 6 | ||
7 | HLINTFLAGS=-XHaskell98 -XCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 | 7 | HLINTFLAGS=-u -XHaskell98 -XCPP -i 'Use camelCase' -i 'Use String' -i 'Use string literal' -i 'Use list comprehension' |
8 | VERSION=0.4 | 8 | VERSION=0.4 |
9 | 9 | ||
10 | .PHONY: all clean doc install debian test | 10 | .PHONY: all clean doc install debian test |
diff --git a/debian/changelog b/debian/changelog index 31d5882..60634f7 100644 --- a/debian/changelog +++ b/debian/changelog | |||
@@ -1,3 +1,9 @@ | |||
1 | haskell-openpgp (0.4-1~hackage1) unstable; urgency=low | ||
2 | |||
3 | * Debianization generated by cabal-debian | ||
4 | |||
5 | -- Stephen Paul Weber <singpolyma@singpolyma.net> Thu, 01 Nov 2012 14:31:20 -0500 | ||
6 | |||
1 | haskell-openpgp (0.3-1~hackage1) unstable; urgency=low | 7 | haskell-openpgp (0.3-1~hackage1) unstable; urgency=low |
2 | 8 | ||
3 | * Debianization generated by cabal-debian | 9 | * Debianization generated by cabal-debian |
diff --git a/debian/control b/debian/control index 679e316..14b26b0 100644 --- a/debian/control +++ b/debian/control | |||
@@ -41,7 +41,9 @@ Description: Implementation of the OpenPGP message format | |||
41 | and then defines instances of Data.Binary for each to facilitate | 41 | and then defines instances of Data.Binary for each to facilitate |
42 | encoding/decoding. | 42 | encoding/decoding. |
43 | . | 43 | . |
44 | For performing cryptography, see <http://hackage.haskell.org/openpgp-Crypto> | 44 | For performing cryptography, see |
45 | <http://hackage.haskell.org/package/openpgp-crypto-api> or | ||
46 | <http://hackage.haskell.org/package/openpgp-Crypto> | ||
45 | . | 47 | . |
46 | It is intended that you use qualified imports with this library. | 48 | It is intended that you use qualified imports with this library. |
47 | . | 49 | . |
@@ -69,7 +71,9 @@ Description: Implementation of the OpenPGP message format | |||
69 | and then defines instances of Data.Binary for each to facilitate | 71 | and then defines instances of Data.Binary for each to facilitate |
70 | encoding/decoding. | 72 | encoding/decoding. |
71 | . | 73 | . |
72 | For performing cryptography, see <http://hackage.haskell.org/openpgp-Crypto> | 74 | For performing cryptography, see |
75 | <http://hackage.haskell.org/package/openpgp-crypto-api> or | ||
76 | <http://hackage.haskell.org/package/openpgp-Crypto> | ||
73 | . | 77 | . |
74 | It is intended that you use qualified imports with this library. | 78 | It is intended that you use qualified imports with this library. |
75 | . | 79 | . |
@@ -97,7 +101,9 @@ Description: Implementation of the OpenPGP message format | |||
97 | and then defines instances of Data.Binary for each to facilitate | 101 | and then defines instances of Data.Binary for each to facilitate |
98 | encoding/decoding. | 102 | encoding/decoding. |
99 | . | 103 | . |
100 | For performing cryptography, see <http://hackage.haskell.org/openpgp-Crypto> | 104 | For performing cryptography, see |
105 | <http://hackage.haskell.org/package/openpgp-crypto-api> or | ||
106 | <http://hackage.haskell.org/package/openpgp-Crypto> | ||
101 | . | 107 | . |
102 | It is intended that you use qualified imports with this library. | 108 | It is intended that you use qualified imports with this library. |
103 | . | 109 | . |