fix json for exportedtrees in conflict

Repeating the same json field with multiple values tends to not be
supported well by json parsers, so list the trees separated by spaces.
This commit is contained in:
Joey Hess 2018-12-03 14:43:59 -04:00
parent b71d62b1aa
commit a25fef36ad
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -188,11 +188,10 @@ adjustExportable r = case M.lookup "exporttree" (config r) of
, checkPresentCheap = False
, mkUnavailable = return Nothing
, getInfo = do
ts <- map (\t -> ("exportedtree", fromRef t) )
. map exportedTreeish
ts <- map (fromRef . exportedTreeish)
<$> getExport (uuid r)
is <- getInfo r
return (is++[("export", "yes")]++ts)
return (is++[("export", "yes"), ("exportedtree", unwords ts)])
}
retrieveKeyFileFromExport getexportlocs exportinconflict k _af dest p = unVerified $
if maybe False (isJust . verifyKeyContent) (maybeLookupBackendVariety (keyVariety k))