[rygel/rygel-0-24] tracker: update_async throws GLib.Error



commit 4285fd43f00f48c80df884ddccbdfab02e23a75f
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Tue Dec 23 16:10:38 2014 +0100

    tracker: update_async throws GLib.Error
    
    Solves the following build error:
    
    make[4]: Entering directory '/home/elmarco/src/gnome/rygel/src/plugins/tracker'
    VALAC    librygel_tracker_la_vala.stamp
    rygel-tracker-selection-query.vala:90.24-90.50: warning: unhandled error `GLib.Error'
    result = yield resources.query_async (str);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    rygel-tracker-cleanup-query.vala:49.15-49.42: warning: unhandled error `GLib.Error'
    yield resources.update_async (str);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    rygel-tracker-insertion-query.vala:129.27-129.60: warning: unhandled error `GLib.Error'
    Variant v = yield resources.update_blank_async (str);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    rygel-tracker-insertion-query.vala:144.32-145.71: warning: unhandled error `GLib.Error'
    rygel-tracker-deletion-query.vala:48.15-48.42: warning: unhandled error `GLib.Error'
    yield resources.update_async (str);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Compilation failed: 0 error(s), 5 warning(s)
    Makefile:1167: recipe for target 'librygel_tracker_la_vala.stamp' failed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741913

 .../tracker/rygel-tracker-cleanup-query.vala       |    3 ++-
 .../tracker/rygel-tracker-deletion-query.vala      |    5 ++++-
 .../tracker/rygel-tracker-insertion-query.vala     |    3 ++-
 src/plugins/tracker/rygel-tracker-query.vala       |    3 ++-
 .../tracker/rygel-tracker-selection-query.vala     |    3 ++-
 5 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-cleanup-query.vala 
b/src/plugins/tracker/rygel-tracker-cleanup-query.vala
index 6fd2190..9b7a275 100644
--- a/src/plugins/tracker/rygel-tracker-cleanup-query.vala
+++ b/src/plugins/tracker/rygel-tracker-cleanup-query.vala
@@ -39,7 +39,8 @@ public class Rygel.Tracker.CleanupQuery : Query {
     }
 
     public override async void execute (Sparql.Connection resources)
-                                        throws IOError,
+                                        throws Error,
+                                               IOError,
                                                Sparql.Error,
                                                DBusError {
         var str = this.to_string ();
diff --git a/src/plugins/tracker/rygel-tracker-deletion-query.vala 
b/src/plugins/tracker/rygel-tracker-deletion-query.vala
index 97256a0..ff8df25 100644
--- a/src/plugins/tracker/rygel-tracker-deletion-query.vala
+++ b/src/plugins/tracker/rygel-tracker-deletion-query.vala
@@ -40,7 +40,10 @@ public class Rygel.Tracker.DeletionQuery : Query {
     }
 
     public override async void execute (Sparql.Connection resources)
-                                        throws IOError, Sparql.Error, DBusError {
+                                        throws Error,
+                                               IOError,
+                                               Sparql.Error,
+                                               DBusError {
         var str = this.to_string ();
 
         debug ("Executing SPARQL query: %s", str);
diff --git a/src/plugins/tracker/rygel-tracker-insertion-query.vala 
b/src/plugins/tracker/rygel-tracker-insertion-query.vala
index 564e24c..a953ebe 100644
--- a/src/plugins/tracker/rygel-tracker-insertion-query.vala
+++ b/src/plugins/tracker/rygel-tracker-insertion-query.vala
@@ -119,7 +119,8 @@ public class Rygel.Tracker.InsertionQuery : Query {
     }
 
     public override async void execute (Sparql.Connection resources)
-                                        throws IOError,
+                                        throws Error,
+                                        IOError,
                                         Sparql.Error,
                                         DBusError {
         var str = this.to_string ();
diff --git a/src/plugins/tracker/rygel-tracker-query.vala b/src/plugins/tracker/rygel-tracker-query.vala
index 06fc678..9ccc9c4 100644
--- a/src/plugins/tracker/rygel-tracker-query.vala
+++ b/src/plugins/tracker/rygel-tracker-query.vala
@@ -37,7 +37,8 @@ public abstract class Rygel.Tracker.Query {
     }
 
     public abstract async void execute (Sparql.Connection resources)
-                                        throws IOError,
+                                        throws Error,
+                                               IOError,
                                                Sparql.Error,
                                                DBusError;
 
diff --git a/src/plugins/tracker/rygel-tracker-selection-query.vala 
b/src/plugins/tracker/rygel-tracker-selection-query.vala
index 9c7fb96..c4aabe5 100644
--- a/src/plugins/tracker/rygel-tracker-selection-query.vala
+++ b/src/plugins/tracker/rygel-tracker-selection-query.vala
@@ -80,7 +80,8 @@ public class Rygel.Tracker.SelectionQuery : Query {
     }
 
     public override async void execute (Sparql.Connection resources)
-                                        throws IOError,
+                                        throws Error,
+                                               IOError,
                                                Sparql.Error,
                                                DBusError {
         var str = this.to_string ();


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