import remotes use ContentIdentifier for getting and checking content
authorJoey Hess <joeyh@joeyh.name>
Thu, 17 Dec 2020 19:52:12 +0000 (15:52 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 17 Dec 2020 19:55:31 +0000 (15:55 -0400)
commitf2ecc6e0daddf563fc6d150d86e4508193468570
tree38088859e8112bbd2de1005d3fcda98f178d40ef
parent5946e7136e88cf450071e9e47af0f6db90aea09e
import remotes use ContentIdentifier for getting and checking content

This is better than using the equivilant actions for export remotes,
especially for getting content, since the ContentIdentifier checking
means we can be sure (enough) that the content is valid to not force
verification of content. Which allows getting keys of types that cannot
be verified.

Also, reorganized the internals of adjustExportImport which was becoming
very hard to follow. Now it's clear what each method does in each case.
Remote/Helper/ExportImport.hs