Hello community,

here is the log from the commit of package go-for-it for openSUSE:Factory 
checked in at 2016-05-17 17:15:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/go-for-it (Old)
 and      /work/SRC/openSUSE:Factory/.go-for-it.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "go-for-it"

Changes:
--------
--- /work/SRC/openSUSE:Factory/go-for-it/go-for-it.changes      2016-02-08 
09:48:32.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.go-for-it.new/go-for-it.changes 2016-05-17 
17:15:35.000000000 +0200
@@ -1,0 +2,5 @@
+Sat May  7 07:12:54 UTC 2016 - [email protected]
+
+- Update to version 1.4.6.
+
+-------------------------------------------------------------------

Old:
----
  go-for-it-1.4.5.tar.gz

New:
----
  go-for-it-1.4.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ go-for-it.spec ++++++
--- /var/tmp/diff_new_pack.coGs0K/_old  2016-05-17 17:15:36.000000000 +0200
+++ /var/tmp/diff_new_pack.coGs0K/_new  2016-05-17 17:15:36.000000000 +0200
@@ -18,13 +18,13 @@
 
 %define _name   Go-For-It
 Name:           go-for-it
-Version:        1.4.5
+Version:        1.4.6
 Release:        0
 Summary:        A stylish to-do list with built-in productivity timer
 License:        GPL-3.0
 Group:          Productivity/Office/Organizers
 Url:            https://github.com/mank319/Go-For-It
-Source:         
https://github.com/mank319/%{_name}/archive/release_v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source:         
https://github.com/mank319/%{_name}/archive/release_%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  cmake >= 2.8
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme
@@ -42,7 +42,7 @@
 on a regular base.
 
 %prep
-%setup -q -n %{_name}-release_v%{version}
+%setup -q -n %{_name}-release_%{version}
 
 %build
 %cmake

++++++ go-for-it-1.4.5.tar.gz -> go-for-it-1.4.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Go-For-It-release_v1.4.5/CMakeLists.txt 
new/Go-For-It-release_1.4.6/CMakeLists.txt
--- old/Go-For-It-release_v1.4.5/CMakeLists.txt 2016-01-17 11:31:25.000000000 
+0100
+++ new/Go-For-It-release_1.4.6/CMakeLists.txt  2016-03-26 18:52:51.000000000 
+0100
@@ -9,7 +9,7 @@
 set (PKGDATADIR "${DATADIR}/go-for-it")
 set (EXEC_NAME "go-for-it")
 set (RELEASE_NAME "A stylish to-do list with built-in productivity timer.")
-set (VERSION "1.4.5")
+set (VERSION "1.4.6")
 set (VERSION_INFO "initial release")
 
 # find pkgconfig to make sure dependencies are installed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Go-For-It-release_v1.4.5/src/TaskManager.vala 
new/Go-For-It-release_1.4.6/src/TaskManager.vala
--- old/Go-For-It-release_v1.4.5/src/TaskManager.vala   2016-01-17 
11:31:25.000000000 +0100
+++ new/Go-For-It-release_1.4.6/src/TaskManager.vala    2016-03-26 
18:52:51.000000000 +0100
@@ -30,6 +30,7 @@
     public TaskStore todo_store;
     public TaskStore done_store;
     private bool read_only;
+    private bool need_to_add_tasks;
     private FileMonitor monitor;
         
     string[] default_todos = {
@@ -42,6 +43,8 @@
     public TaskManager (SettingsManager settings) {
         this.settings = settings;
         
+        need_to_add_tasks = settings.first_start;
+        
         // Initialize TaskStores
         todo_store = new TaskStore (false);
         done_store = new TaskStore (true);
@@ -51,7 +54,6 @@
         /* Signal processing */
         settings.todo_txt_location_changed.connect (load_task_stores);
         
-        
         // Move done tasks off the todo list on startup
         auto_transfer_tasks();
     }
@@ -135,7 +137,15 @@
         
         load_tasks ();
 
-        monitor = todo_txt_dir.monitor_directory (FileMonitorFlags.NONE, null);
+        watch_file ();
+    }
+    
+    private void watch_file () {
+        try {
+            monitor = todo_txt_dir.monitor_directory (FileMonitorFlags.NONE, 
null);
+        } catch (IOError e) {
+            stderr.printf ("watch_file: %s\n", e.message);
+        }
         
         monitor.changed.connect ((src, dest, event) => {
             refresh();
@@ -155,11 +165,11 @@
         read_only = true;
         todo_store.clear ();
         done_store.clear ();
-        read_only = false;
         read_task_file (this.todo_store, this.todo_txt);
         read_task_file (this.done_store, this.done_txt);
+        read_only = false;
         
-        if (settings.first_start) {
+        if (need_to_add_tasks) {
             // Iterate in reverse order because todos are added to position 0
             for (int i = default_todos.length - 1;
                  i >= 0;
@@ -167,13 +177,18 @@
             {
                 todo_store.add_task(default_todos[i], 0);
             }
+            need_to_add_tasks = false;
         }
     }
     
     private void save_tasks () {
         if (!read_only) {
+            if (monitor != null) {
+                monitor.cancel ();
+            }
             write_task_file (this.todo_store, this.todo_txt);
             write_task_file (this.done_store, this.done_txt);
+            watch_file ();
         }
     }
     
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Go-For-It-release_v1.4.5/src/Utils.vala 
new/Go-For-It-release_1.4.6/src/Utils.vala
--- old/Go-For-It-release_v1.4.5/src/Utils.vala 2016-01-17 11:31:25.000000000 
+0100
+++ new/Go-For-It-release_1.4.6/src/Utils.vala  2016-03-26 18:52:51.000000000 
+0100
@@ -24,7 +24,7 @@
     const string APP_NAME = "Go For It!";
     const string APP_SYSTEM_NAME = "go-for-it";
     const string APP_ID = "de.manuel-kehl.go-for-it";
-    const string APP_VERSION = "1.4.5";
+    const string APP_VERSION = "1.4.6";
     const string FILE_CONF = "go-for-it.conf";
     const string PROJECT_WEBSITE = "http://manuel-kehl.de/projects/go-for-it/";;
     const string PROJECT_REPO = "https://github.com/mank319/Go-For-It";;


Reply via email to