avoid using dropEnd
That needs bytestring-0.11.1.0 and several builds don't have that.
This commit is contained in:
parent
ce60211881
commit
adb564a48e
1 changed files with 3 additions and 2 deletions
|
@ -95,9 +95,10 @@ genManifestKey u = mkKey $ \kd -> kd
|
|||
isGitRemoteAnnexKey :: UUID -> Key -> Bool
|
||||
isGitRemoteAnnexKey u k =
|
||||
case fromKey keyVariety k of
|
||||
GitBundleKey -> sameuuid $
|
||||
GitBundleKey -> sameuuid $ \b ->
|
||||
-- Remove the checksum that comes after the UUID.
|
||||
B8.dropEnd 1 . B8.dropWhileEnd (/= '-')
|
||||
let b' = B8.dropWhileEnd (/= '-') b
|
||||
in B8.take (B8.length b' - 1) b'
|
||||
GitManifestKey -> sameuuid id
|
||||
_ -> False
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue