Package: vdirsyncer / 0.19.3-2

Metadata

Package Version Patches format
vdirsyncer 0.19.3-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001_adjacent identical keys.patch | (download)

vdirsyncer/vobject.py | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fix _component.__delitem__ with adjacent identical keys

Hypothesis found the following example:

```
tests/unit/utils/test_vobject.py:335: in add_prop
    assert c[key] == value
E   AssertionError: assert '0' == '1'
E
E     - 1
E       0
E   Falsifying example:
E   state = VobjectMachine()
E   unparsed_0 = state.get_unparsed_lines(encoded=False, joined=False)
E   parsed_0 = state.parse(unparsed=unparsed_0)
E   state.add_prop_raw(c=parsed_0, key='0', params=[], value='0')
E   state.add_prop_raw(c=parsed_0, key='0', params=[], value='0')
E   state.add_prop(c=parsed_0, key='0', value='1')
E   state.teardown()
```

After the two `add_prop_raw` calls, `c.props` is `["0;:0", "0;:0",
"FOO:YES"]`.  `_Component.__delitem__` then fails to effectively delete
the previous key: it deletes the first `"0;:0"` item, but then checks
for continuation lines following it and incorrectly keeps the second
`"0;:0"` item even though it begins with one of the prefixes it's trying
to delete.  Checking for the prefix in the check for continuation lines
fixes this.

Fixes: #1149

1003_skip_network_tests.patch | (download)

tests/system/utils/test_main.py | 4 4 0 - 0 !
1 file changed, 4 insertions( )

 skip network test unless extended_testing is set in environment
2001_click log_relax_dependency.patch | (download)

setup.py | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 relax dependency on python module click-log
 Debian package is not yet updated,
 and the older version seems adequate.
2002_include_license_from_copyright_file.patch | (download)

docs/license.rst | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 include license from copyright file