avoid using export method when the remote only supports import
This commit is contained in:
parent
e3d356fe84
commit
2e72590a48
1 changed files with 3 additions and 1 deletions
|
@ -352,7 +352,9 @@ adjustExportImport' isexport isimport r rs = do
|
||||||
return UnVerified
|
return UnVerified
|
||||||
-- In case a content identifier is somehow missing,
|
-- In case a content identifier is somehow missing,
|
||||||
-- try this instead.
|
-- 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
|
-- appendonly remotes have a key/value store, so can use
|
||||||
-- the usual retrieveKeyFile, rather than an import/export
|
-- the usual retrieveKeyFile, rather than an import/export
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue