summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Content.hs2
-rw-r--r--Annex/Locations.hs3
2 files changed, 3 insertions, 2 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs
index e879e4eeb..8e225548f 100644
--- a/Annex/Content.hs
+++ b/Annex/Content.hs
@@ -341,7 +341,7 @@ verifyKeyContent v UnVerified k f = ifM (shouldVerify v)
Just size -> do
size' <- liftIO $ catchDefaultIO 0 $ getFileSize f
return (size' == size)
- verifycontent = case Types.Backend.verifyKeyContent =<< Backend.maybeLookupBackendName (keyBackendName k) of
+ verifycontent = case Types.Backend.verifyKeyContent =<< Backend.maybeLookupBackendVariety (keyVariety k) of
Nothing -> return True
Just verifier -> verifier k f
diff --git a/Annex/Locations.hs b/Annex/Locations.hs
index 3138b2322..6bc24c4a8 100644
--- a/Annex/Locations.hs
+++ b/Annex/Locations.hs
@@ -78,6 +78,7 @@ import Data.Default
import Common
import Key
+import Types.Key
import Types.UUID
import Types.GitConfig
import Types.Difference
@@ -478,7 +479,7 @@ prop_isomorphic_fileKey s
| null s = True -- it's not legal for a key to have no keyName
| otherwise= Just k == fileKey (keyFile k)
where
- k = stubKey { keyName = s, keyBackendName = "test" }
+ k = stubKey { keyName = s, keyVariety = OtherKey "test" }
{- A location to store a key on a special remote that uses a filesystem.
- A directory hash is used, to protect against filesystems that dislike