implement Unavilable for borg bup ddar directory rsync

Only gcrypt remains to add support for. (Well, possibly also adb?)

Sponsored-by: Luke T. Shumaker on Patreon
This commit is contained in:
Joey Hess 2023-08-16 15:48:09 -04:00
parent 67c99a4db7
commit 977403d338
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
9 changed files with 42 additions and 12 deletions

View file

@ -25,6 +25,7 @@ import Config.Cost
import Annex.SpecialRemote.Config
import Remote.Helper.Special
import Remote.Helper.ExportImport
import Remote.Helper.Path
import Annex.Ssh
import Annex.UUID
import Utility.SshHost
@ -98,8 +99,9 @@ gen r u rc gc rs = do
then Just $ ddarRepoLocation ddarrepo
else Nothing
, remotetype = remote
, availability = pure $
if ddarLocal ddarrepo then LocallyAvailable else GloballyAvailable
, availability = checkPathAvailability
(ddarLocal ddarrepo && not (null $ ddarRepoLocation ddarrepo))
(ddarRepoLocation ddarrepo)
, readonly = False
, appendonly = False
, untrustworthy = False