mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
Merge branch 'release'
This commit is contained in:
commit
3eb25c94bd
3 changed files with 15 additions and 7 deletions
5
configure
vendored
5
configure
vendored
|
@ -55,6 +55,8 @@ subdirs="${subdirs} bindings"
|
|||
# the directory structure and copy Makefiles.
|
||||
if [ "$srcdir" != "." ]; then
|
||||
|
||||
NOTMUCH_BUILDDIR=$PWD
|
||||
|
||||
for dir in . ${subdirs}; do
|
||||
mkdir -p "$dir"
|
||||
cp "$srcdir"/"$dir"/Makefile.local "$dir"
|
||||
|
@ -78,6 +80,8 @@ if [ "$srcdir" != "." ]; then
|
|||
"$srcdir"/bindings/python-cffi/notmuch2 \
|
||||
"$srcdir"/bindings/python-cffi/setup.py \
|
||||
bindings/python-cffi/
|
||||
else
|
||||
NOTMUCH_BUILDDIR=$NOTMUCH_SRCDIR
|
||||
fi
|
||||
|
||||
# Set several defaults (optionally specified by the user in
|
||||
|
@ -1247,6 +1251,7 @@ cat > Makefile.config <<EOF
|
|||
# directory (the current directory at the time configure was run).
|
||||
srcdir = ${srcdir}
|
||||
NOTMUCH_SRCDIR = ${NOTMUCH_SRCDIR}
|
||||
NOTMUCH_BUILDDIR = ${NOTMUCH_BUILDDIR}
|
||||
|
||||
# subdirectories to build
|
||||
subdirs = ${subdirs}
|
||||
|
|
|
@ -661,16 +661,12 @@ notmuch_database_create_with_config (const char *database_path,
|
|||
|
||||
err = mkdir (notmuch_path, 0755);
|
||||
if (err) {
|
||||
if (errno == EEXIST) {
|
||||
status = NOTMUCH_STATUS_DATABASE_EXISTS;
|
||||
talloc_free (notmuch);
|
||||
notmuch = NULL;
|
||||
} else {
|
||||
if (errno != EEXIST) {
|
||||
IGNORE_RESULT (asprintf (&message, "Error: Cannot create directory %s: %s.\n",
|
||||
notmuch_path, strerror (errno)));
|
||||
status = NOTMUCH_STATUS_FILE_ERROR;
|
||||
goto DONE;
|
||||
}
|
||||
goto DONE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -318,7 +318,14 @@ to=m.header('To')
|
|||
print(to)
|
||||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
;& # fall through
|
||||
;;
|
||||
*)
|
||||
backup_database
|
||||
test_begin_subtest ".notmuch without xapian/ handled gracefully ($config)"
|
||||
rm -r $XAPIAN_PATH
|
||||
test_expect_success "notmuch new"
|
||||
restore_database
|
||||
;;
|
||||
esac
|
||||
|
||||
case $config in
|
||||
|
|
Loading…
Reference in a new issue