Merge branch 'release'

Conflicts:
	NEWS

Conflicts resolved by inserting the 0.10.2 stanza before 0.11
This commit is contained in:
David Bremner 2011-12-06 19:39:33 -04:00
commit f0e0053149
9 changed files with 46 additions and 4 deletions

View file

@ -143,7 +143,7 @@ debian-snapshot: TMPFILE := $(shell mktemp)
debian-snapshot:
make VERSION=$(VERSION) clean
cp debian/changelog $(TMPFILE)
EDITOR=/bin/true dch -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
EDITOR=/bin/true dch -b -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
echo '3.0 (native)' > debian/source/format
debuild -us -uc
mv -f $(TMPFILE) debian/changelog

11
NEWS
View file

@ -11,6 +11,17 @@ Automatic tag query optimization
suggested that people do this by hand; this is no longer necessary.
Notmuch 0.10.2 (2011-12-04)
===========================
Bug-fix release.
----------------
Fix crash in python bindings.
The python bindings did not call g_type_init, which caused crashes
for some, but not all users.
Notmuch 0.10.1 (2011-11-25)
===========================

View file

@ -1,2 +1,2 @@
# this file should be kept in sync with ../../../version
__VERSION__ = '0.10.1'
__VERSION__ = '0.10.2'

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
notmuch (0.10.2-1) unstable; urgency=low
* Upstream bug fix release
- Fix segfault in python bindings due to missing g_type_init call.
-- David Bremner <bremner@debian.org> Sun, 04 Dec 2011 22:06:46 -0400
notmuch (0.10.1-1) unstable; urgency=low
* Upstream bug fix release.

View file

@ -26,6 +26,7 @@
#include <signal.h>
#include <glib.h> /* g_free, GPtrArray, GHashTable */
#include <glib-object.h> /* g_type_init */
using namespace std;
@ -600,6 +601,9 @@ notmuch_database_open (const char *path,
goto DONE;
}
/* Initialize the GLib type system and threads */
g_type_init ();
notmuch = talloc (NULL, notmuch_database_t);
notmuch->exception_reported = FALSE;
notmuch->path = talloc_strdup (notmuch, path);

View file

@ -16,7 +16,7 @@
.\" along with this program. If not, see http://www.gnu.org/licenses/ .
.\"
.\" Author: Carl Worth <cworth@cworth.org>
.TH NOTMUCH 1 2011-11-25 "Notmuch 0.10.1"
.TH NOTMUCH 1 2011-12-04 "Notmuch 0.10.2"
.SH NAME
notmuch \- thread-based email index, search, and tagging
.SH SYNOPSIS

View file

@ -47,6 +47,7 @@ TESTS="
symbol-hiding
search-folder-coherence
atomicity
python
"
TESTS=${NOTMUCH_TESTS:=$TESTS}

19
test/python Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
test_description="python bindings"
. ./test-lib.sh
add_email_corpus
test_begin_subtest "compare thread ids"
LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib \
PYTHONPATH=$TEST_DIRECTORY/../bindings/python \
python <<EOF | sort > OUTPUT
import notmuch
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
q_new = notmuch.Query(db, 'tag:inbox')
for t in q_new.search_threads():
print t.get_thread_id()
EOF
notmuch search --output=threads tag:inbox | sed s/^thread:// | sort > EXPECTED
test_expect_equal_file OUTPUT EXPECTED
test_done

View file

@ -1 +1 @@
0.10.1
0.10.2