avoid using export method when the remote only supports import

This commit is contained in:
Joey Hess 2020-12-23 13:17:46 -04:00
parent e3d356fe84
commit 2e72590a48
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -352,7 +352,9 @@ adjustExportImport' isexport isimport r rs = do
return UnVerified
-- In case a content identifier is somehow missing,
-- try this instead.
[] -> retrieveKeyFileFromExport dbv k af dest p
[] -> if isexport
then retrieveKeyFileFromExport dbv k af dest p
else giveup "no content identifier is recorded, unable to retrieve"
-- appendonly remotes have a key/value store, so can use
-- the usual retrieveKeyFile, rather than an import/export