avoid using dropEnd

That needs bytestring-0.11.1.0 and several builds don't have that.
This commit is contained in:
Joey Hess 2024-05-16 09:52:34 -04:00
parent ce60211881
commit adb564a48e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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