Skip to content

Commit b9f7494

Browse files
committed
Add forward-compatibility for storage type parameter
The Rust rewrite of vdirsyncer requires explicitly specifying what type of "filesystem" storage is being used. These can be either "filesystem/icalendar" or "filesystem/vcard". Add forward-compatibility with this upcoming format, by allowing (but ignoring) a slash and anything after it. This makes configuration files that have been updated for the Rust implementation compatible with the Python implementation. Closes: #1075
1 parent 7e5910a commit b9f7494

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Version 0.19.2
1515
- Improve the performance of ``SingleFileStorage``. :gh:`818`
1616
- Properly document some caveats of the Google Contacts storage.
1717
- Fix crash when using auth certs. :gh:`1033`
18+
- The ``filesystem`` storage can be specified with ``type =
19+
"filesystem/icalendar"`` or ``type = "filesystem/vcard"``. This has not
20+
functional impact, and is merely for forward compatibility with the Rust
21+
implementation of vdirsyncer.
1822

1923
Version 0.19.1
2024
==============

vdirsyncer/cli/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ async def repair_collection(
110110
storage_name, collection = storage_name.split("/")
111111

112112
config = config.get_storage_args(storage_name)
113-
storage_type = config["type"]
113+
# If storage type has a slash, ignore it and anything after it.
114+
storage_type = config["type"].split("/")[0]
114115

115116
if collection is not None:
116117
cli_logger.info("Discovering collections (skipping cache).")

0 commit comments

Comments
 (0)