summaryrefslogtreecommitdiff
path: root/Remote/Helper/Chunked.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Remote/Helper/Chunked.hs')
-rw-r--r--Remote/Helper/Chunked.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Remote/Helper/Chunked.hs b/Remote/Helper/Chunked.hs
index d9ab3c3e6..fcfe06b20 100644
--- a/Remote/Helper/Chunked.hs
+++ b/Remote/Helper/Chunked.hs
@@ -23,6 +23,7 @@ import Types.Key
import Logs.Chunk
import Utility.Metered
import Crypto (EncKey)
+import Backend (isStableKey)
import Annex.Exception
import qualified Data.ByteString.Lazy as L
@@ -95,7 +96,7 @@ storeChunks
-> Annex Bool
storeChunks u chunkconfig k f p storer checker =
case chunkconfig of
- (UnpaddedChunks chunksize) ->
+ (UnpaddedChunks chunksize) | isStableKey k ->
bracketIO open close (go chunksize)
_ -> showprogress $ storer k (FileContent f)
where