[tracker/tracker-cmd: 11/12] tracker: Allow -r and -c to be used with 'tracker reset' together



commit 8716023a3c416b3f4ffdea3e4215d4599cb91fdf
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Oct 28 13:13:56 2014 +0000

    tracker: Allow -r and -c to be used with 'tracker reset' together

 src/tracker/tracker-reset.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker/tracker-reset.c b/src/tracker/tracker-reset.c
index 4c79137..63b0085 100644
--- a/src/tracker/tracker-reset.c
+++ b/src/tracker/tracker-reset.c
@@ -200,6 +200,10 @@ reset_run (void)
 
                /* Unset log handler */
                g_log_remove_handler (NULL, log_handler_id);
+
+               if (!remove_config) {
+                       return EXIT_SUCCESS;
+               }
        }
 
        if (remove_config) {
@@ -264,6 +268,8 @@ reset_run (void)
                g_settings_sync ();
 
                tracker_gsettings_free (all);
+
+               return EXIT_SUCCESS;
        }
 
        /* All known options have their own exit points */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]