r2295 - in /unstable/evolution-data-server/debian: changelog patches/30_e_book_backend_file_open_test_directory_existence.patch patches/series
jordi at users.alioth.debian.org
jordi at users.alioth.debian.org
Sun Oct 21 15:55:05 UTC 2012
Author: jordi
Date: Sun Oct 21 15:55:05 2012
New Revision: 2295
URL: http://svn.debian.org/wsvn/pkg-evolution/?sc=1&rev=2295
Log:
Add 30_e_book_backend_file_open_test_directory_existence.patch: Fix
directory existence test.
Added:
unstable/evolution-data-server/debian/patches/30_e_book_backend_file_open_test_directory_existence.patch
Modified:
unstable/evolution-data-server/debian/changelog
unstable/evolution-data-server/debian/patches/series
Modified: unstable/evolution-data-server/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution-data-server/debian/changelog?rev=2295&op=diff
==============================================================================
--- unstable/evolution-data-server/debian/changelog (original)
+++ unstable/evolution-data-server/debian/changelog Sun Oct 21 15:55:05 2012
@@ -1,6 +1,8 @@
evolution-data-server (3.4.4-1) unstable; urgency=low
* New upstream bugfix release.
+ * Add 30_e_book_backend_file_open_test_directory_existence.patch: Fix
+ directory existence test.
-- Jordi Mallach <jordi at debian.org> Mon, 08 Oct 2012 19:29:57 +0200
Added: unstable/evolution-data-server/debian/patches/30_e_book_backend_file_open_test_directory_existence.patch
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution-data-server/debian/patches/30_e_book_backend_file_open_test_directory_existence.patch?rev=2295&op=file
==============================================================================
--- unstable/evolution-data-server/debian/patches/30_e_book_backend_file_open_test_directory_existence.patch (added)
+++ unstable/evolution-data-server/debian/patches/30_e_book_backend_file_open_test_directory_existence.patch Sun Oct 21 15:55:05 2012
@@ -1,0 +1,27 @@
+From 9ce3be5e6c44ac07c0dd8020627073c7427e7677 Mon Sep 17 00:00:00 2001
+From: Matthew Barnes <mbarnes at redhat.com>
+Date: Tue, 19 Jun 2012 19:17:04 +0000
+Subject: e_book_backend_file_open: Fix directory existence test.
+
+In e_book_backend_file_open() we seem to be bailing out if the data
+directory does not exist, but yet we don't create the directory until
+further down.
+
+Not sure if this is correct, but it seems to me we only want to check
+for the data directory if 'only_if_exists == TRUE'.
+---
+diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
+index 79194c7..8cd6712 100644
+--- a/addressbook/backends/file/e-book-backend-file.c
++++ b/addressbook/backends/file/e-book-backend-file.c
+@@ -1884,7 +1884,7 @@ e_book_backend_file_open (EBookBackendSync *backend,
+ dirname = e_book_backend_file_extract_path_from_source (
+ registry, source, GET_PATH_DB_DIR);
+
+- if (!g_file_test (dirname, G_FILE_TEST_IS_DIR)) {
++ if (only_if_exists && !g_file_test (dirname, G_FILE_TEST_IS_DIR)) {
+ g_free (dirname);
+ g_propagate_error (perror, EDB_ERROR (NO_SUCH_BOOK));
+ return;
+--
+cgit v0.9.0.2
Modified: unstable/evolution-data-server/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution-data-server/debian/patches/series?rev=2295&op=diff
==============================================================================
--- unstable/evolution-data-server/debian/patches/series (original)
+++ unstable/evolution-data-server/debian/patches/series Sun Oct 21 15:55:05 2012
@@ -1,1 +1,2 @@
20_gettext_intltool.patch
+30_e_book_backend_file_open_test_directory_existence.patch
More information about the pkg-evolution-commits
mailing list