Merge branch 'release'

Changes from 0.28.3
This commit is contained in:
David Bremner 2019-03-06 08:53:26 -04:00
commit 71eaa19350
7 changed files with 69 additions and 3 deletions

14
NEWS
View file

@ -7,6 +7,20 @@ Command Line Interface
`notmuch show` now supports --body=false and --include-html with `notmuch show` now supports --body=false and --include-html with
--format=text --format=text
Notmuch 0.28.3 (2019-03-05)
===========================
Library
-------
Fix a bug with the internal data structure _notmuch_string_map_t used
by message properties.
Build System
------------
Serialize calls to sphinx-build to avoid race condition.
`
Notmuch 0.28.2 (2019-02-17) Notmuch 0.28.2 (2019-02-17)
=========================== ===========================

View file

@ -1,3 +1,3 @@
# this file should be kept in sync with ../../../version # this file should be kept in sync with ../../../version
__VERSION__ = '0.28.2' __VERSION__ = '0.28.3'
SOVERSION = '5' SOVERSION = '5'

9
debian/changelog vendored
View file

@ -1,3 +1,12 @@
notmuch (0.28.3-1) unstable; urgency=medium
* New upstream bugfix release.
* Fix for bug in message property search
* Fix for race condition leading to (very) occasional build failures
when building the documentation.
-- David Bremner <bremner@debian.org> Tue, 05 Mar 2019 15:39:09 -0400
notmuch (0.28.2-1) unstable; urgency=medium notmuch (0.28.2-1) unstable; urgency=medium
* [notmuch-emacs] Invoke gpg from with --batch and --no-tty * [notmuch-emacs] Invoke gpg from with --batch and --no-tty

View file

@ -41,6 +41,14 @@ ifeq ($(WITH_EMACS),1)
$(DOCBUILDDIR)/.roff.stamp sphinx-html sphinx-texinfo: docstring.stamp $(DOCBUILDDIR)/.roff.stamp sphinx-html sphinx-texinfo: docstring.stamp
endif endif
# Sequentialize the calls to sphinx-build to avoid races with
# reading/writing cached state. This uses GNU make specific
# "order-only" prerequisites.
sphinx-html: | $(DOCBUILDDIR)/.roff.stamp
sphinx-texinfo: | sphinx-html
sphinx-info: | sphinx-texinfo
sphinx-html: sphinx-html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html

View file

@ -106,7 +106,7 @@ _notmuch_string_map_sort (notmuch_string_map_t *map)
map->sorted = true; map->sorted = true;
} }
static bool static int
string_cmp (const char *a, const char *b, bool exact) string_cmp (const char *a, const char *b, bool exact)
{ {
if (exact) if (exact)

View file

@ -100,6 +100,41 @@ cat <<'EOF' >EXPECTED
EOF EOF
test_expect_equal_file EXPECTED OUTPUT test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "testing string map binary search (via message properties)"
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{
char *keys[] = {"a", "b", "c", "d", "e", NULL};
for (int i=0; keys[i]; i++)
EXPECT0(notmuch_message_add_property (message, keys[i], keys[i]));
for (int i=0; keys[i]; i++) {
EXPECT0(notmuch_message_get_property (message, keys[i], &val));
printf("%s = %s\n", keys[i], val);
}
for (int i=0; keys[i]; i++) {
EXPECT0(notmuch_message_remove_property (message, keys[i], keys[i]));
EXPECT0(notmuch_message_get_property (message, keys[i], &val));
printf("%s = %s\n", keys[i], val == NULL ? "NULL" : val);
}
}
EOF
cat <<EOF > EXPECTED
== stdout ==
a = a
b = b
c = c
d = d
e = e
a = NULL
b = NULL
c = NULL
d = NULL
e = NULL
== stderr ==
EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "notmuch_message_get_properties: empty list" test_begin_subtest "notmuch_message_get_properties: empty list"
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{ {

View file

@ -1 +1 @@
0.28.2 0.28.3