summaryrefslogtreecommitdiff
path: root/Assistant/Threads/SanityChecker.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/Threads/SanityChecker.hs')
-rw-r--r--Assistant/Threads/SanityChecker.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Assistant/Threads/SanityChecker.hs b/Assistant/Threads/SanityChecker.hs
index 62ba8f0d0..0c79ef605 100644
--- a/Assistant/Threads/SanityChecker.hs
+++ b/Assistant/Threads/SanityChecker.hs
@@ -39,6 +39,7 @@ import Git.Index
import Assistant.Unused
import Logs.Unused
import Types.Transfer
+import Types.Key
import Annex.Path
import qualified Annex
#ifdef WITH_WEBAPP
@@ -308,7 +309,7 @@ cleanReallyOldTmp = do
cleanjunk check f = case fileKey (takeFileName f) of
Nothing -> cleanOld check f
Just k
- | "GPGHMAC" `isPrefixOf` keyBackendName k ->
+ | "GPGHMAC" `isPrefixOf` formatKeyVariety (keyVariety k) ->
cleanOld check f
| otherwise -> noop