diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-14 05:52:01 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-14 06:28:32 +0800 |
commit | 011747a5f75840e440ddb06a08ea5957e74e8cab (patch) | |
tree | 0e539626aa84550f5f2929b7f76833425ae7a2cd /mail | |
parent | 09f2b14cf143b3f48d51d5461c29f28a14536842 (diff) | |
download | gsoc2013-evolution-011747a5f75840e440ddb06a08ea5957e74e8cab.tar.gz gsoc2013-evolution-011747a5f75840e440ddb06a08ea5957e74e8cab.tar.zst gsoc2013-evolution-011747a5f75840e440ddb06a08ea5957e74e8cab.zip |
e_mail_migrate(): Remove directory creation code.
e_shell_backend_get_data_dir() already creates the user's data directory
for mail, so there's no need to try and create the directory again.
This eliminates the only usage of the E_SHELL_MIGRATE_ERROR domain.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-migrate.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c index 24335c9594..30683f4aeb 100644 --- a/mail/e-mail-migrate.c +++ b/mail/e-mail-migrate.c @@ -315,18 +315,7 @@ e_mail_migrate (EShellBackend *shell_backend, struct stat st; const gchar *data_dir; - /* make sure ~/.evolution/mail exists */ data_dir = e_shell_backend_get_data_dir (shell_backend); - if (g_stat (data_dir, &st) == -1) { - if (errno != ENOENT || g_mkdir_with_parents (data_dir, 0700) == -1) { - g_set_error ( - error, E_SHELL_MIGRATE_ERROR, - E_SHELL_MIGRATE_ERROR_FAILED, - _("Unable to create local mail folders at " - "'%s': %s"), data_dir, g_strerror (errno)); - return FALSE; - } - } if (major == 0) return emm_setup_initial (data_dir); |