clear exportSupported for non-export remotes

Non-export remotes were being treated as untrusted, so the test suite
failed, and probably other things broke.
This commit is contained in:
Joey Hess 2017-09-13 12:05:53 -04:00
parent f8fd66d3f8
commit 28ba158a24
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -79,7 +79,12 @@ adjustExportable r = case M.lookup "exporttree" (config r) of
Just "no" -> notexport
Just _ -> error "bad exporttree value"
where
notexport = return $ r { exportActions = exportUnsupported }
notexport = return $ r
{ exportActions = exportUnsupported
, remotetype = (remotetype r)
{ exportSupported = exportUnsupported
}
}
isexport = do
db <- openDb (uuid r)
return $ r