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:
parent
67c99a4db7
commit
977403d338
9 changed files with 42 additions and 12 deletions
|
@ -31,6 +31,7 @@ import Annex.Ssh
|
|||
import Annex.Perms
|
||||
import Remote.Helper.Special
|
||||
import Remote.Helper.ExportImport
|
||||
import Remote.Helper.Path
|
||||
import Types.Export
|
||||
import Types.ProposedAccepted
|
||||
import Remote.Rsync.RsyncUrl
|
||||
|
@ -120,8 +121,7 @@ gen r u rc gc rs = do
|
|||
, readonly = False
|
||||
, appendonly = False
|
||||
, untrustworthy = False
|
||||
, availability = pure $
|
||||
if islocal then LocallyAvailable else GloballyAvailable
|
||||
, availability = checkPathAvailability islocal (rsyncUrl o)
|
||||
, remotetype = remote
|
||||
, mkUnavailable = return Nothing
|
||||
, getInfo = return [("url", url)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue