mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
vdirsyncer/metasync.py: for read_only storages adjust the metadata resolution in favour of the read_only storage
This commit is contained in:
parent
54a5bf4ad3
commit
8a44b278d1
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ async def metasync(storage_a, storage_b, status, keys, conflict_resolution=None)
|
||||||
logger.debug(f"B: {b}")
|
logger.debug(f"B: {b}")
|
||||||
logger.debug(f"S: {s}")
|
logger.debug(f"S: {s}")
|
||||||
|
|
||||||
if a != s and b != s:
|
if a != s and b != s or storage_a.read_only or storage_b.read_only:
|
||||||
await _resolve_conflict()
|
await _resolve_conflict()
|
||||||
elif a != s and b == s:
|
elif a != s and b == s:
|
||||||
await _a_to_b()
|
await _a_to_b()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue