aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2011-11-26 21:15:20 -0800
committerDavid Bremner <bremner@debian.org>2011-11-26 21:15:20 -0800
commitac8576de63b4383aef597e1db5af939e3b46594c (patch)
tree9a48d8da04b0cb3ffea695565de02ae459d77eae
parent9756b9dcb93c1babf5083cd91ad242b148c426a3 (diff)
parent398b94bb394e2be0633175b58b47451bc3ba98ca (diff)
Merge branch 'release'
-rw-r--r--NEWS12
-rw-r--r--bindings/python/notmuch/version.py2
-rw-r--r--debian/changelog7
-rw-r--r--notmuch.12
-rw-r--r--notmuch.c2
-rwxr-xr-xtest/help-test12
-rwxr-xr-xtest/notmuch-test1
-rw-r--r--version2
8 files changed, 36 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 18252e4..384f5a0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,15 @@
+Notmuch 0.10.1 (2011-11-25)
+===========================
+
+Bug-fix release.
+----------------
+
+Fix --help argument
+
+ Argument processing changes in 0.10 introduced a bug where "notmuch
+ --help" crashed while "notmuch help" worked fine. This is fixed in
+ 0.10.1.
+
Notmuch 0.10 (2011-11-23)
=========================
diff --git a/bindings/python/notmuch/version.py b/bindings/python/notmuch/version.py
index d1e5836..a6a872e 100644
--- a/bindings/python/notmuch/version.py
+++ b/bindings/python/notmuch/version.py
@@ -1,2 +1,2 @@
# this file should be kept in sync with ../../../version
-__VERSION__ = '0.10'
+__VERSION__ = '0.10.1'
diff --git a/debian/changelog b/debian/changelog
index d0d144e..ac5c331 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+notmuch (0.10.1-1) unstable; urgency=low
+
+ * Upstream bug fix release.
+ - Fix segfault on "notmuch --help"
+
+ -- David Bremner <bremner@debian.org> Fri, 25 Nov 2011 12:11:30 -0500
+
notmuch (0.10-1) unstable; urgency=low
* New upstream release
diff --git a/notmuch.1 b/notmuch.1
index d64dd1e..92931d7 100644
--- a/notmuch.1
+++ b/notmuch.1
@@ -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-23 "Notmuch 0.10"
+.TH NOTMUCH 1 2011-11-25 "Notmuch 0.10.1"
.SH NAME
notmuch \- thread-based email index, search, and tagging
.SH SYNOPSIS
diff --git a/notmuch.c b/notmuch.c
index 77973f8..d44ce9a 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -621,7 +621,7 @@ main (int argc, char *argv[])
return notmuch (local);
if (STRNCMP_LITERAL (argv[1], "--help") == 0)
- return notmuch_help_command (NULL, 0, NULL);
+ return notmuch_help_command (NULL, argc - 1, &argv[1]);
if (STRNCMP_LITERAL (argv[1], "--version") == 0) {
printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n");
diff --git a/test/help-test b/test/help-test
new file mode 100755
index 0000000..9f4b9c7
--- /dev/null
+++ b/test/help-test
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+test_description="online help"
+. test-lib.sh
+
+test_expect_success 'notmuch --help' 'notmuch --help'
+test_expect_success 'notmuch --help tag' 'notmuch --help tag'
+test_expect_success 'notmuch help' 'notmuch help'
+test_expect_success 'notmuch help tag' 'notmuch help tag'
+test_expect_success 'notmuch --version' 'notmuch --version'
+
+test_done
diff --git a/test/notmuch-test b/test/notmuch-test
index 6c65ed7..ba28ff3 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -18,6 +18,7 @@ cd $(dirname "$0")
TESTS="
basic
+ help-test
new
count
search
diff --git a/version b/version
index 68c123c..5712157 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-0.10
+0.10.1