force verification after getting file from export remote
authorJoey Hess <joeyh@joeyh.name>
Thu, 17 Dec 2020 19:31:22 +0000 (15:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 17 Dec 2020 19:31:22 +0000 (15:31 -0400)
This way, if annex.verify is disabled, it's still checked, since this is
not a key/value store, it has to be checked.

Remote/Helper/ExportImport.hs

index 439c7d854d7ea6fda1eca91b36d5b9dfa3aa3cfc..84ed778a20d30f62423c817cd4d67765f1c61dfd 100644 (file)
@@ -333,6 +333,6 @@ adjustExportImport rmt rs = do
                                        )
                                (l:_) -> do
                                        retrieveExport (exportActions r) k l dest p
-                                       return UnVerified
+                                       return MustVerify
                , giveup $ "exported content cannot be verified due to using the " ++ decodeBS (formatKeyVariety (fromKey keyVariety k)) ++ " backend"
                )