[brasero] Fix packagekit integration



commit f83d9a41e541d6777b8b2c8851f5e2fd79b92b3e
Author: Marc Deslauriers <marc deslauriers ubuntu com>
Date:   Mon Feb 14 15:12:36 2011 -0500

    Fix packagekit integration
    
    Brasero currently crashes when trying to copy an audio cd without
    having cdrdao installed. This patch fixes up the packagekit
    backend so it will actually work and install missing binaries.

 libbrasero-utils/brasero-pk.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-utils/brasero-pk.c b/libbrasero-utils/brasero-pk.c
index 29e217c..aa71901 100644
--- a/libbrasero-utils/brasero-pk.c
+++ b/libbrasero-utils/brasero-pk.c
@@ -85,7 +85,11 @@ brasero_pk_install_missing_files_result (GObject *source_object,
 
 	if (priv->values != NULL)
 		g_variant_unref (priv->values);
+		priv->res = TRUE;
 	g_object_unref (priv->proxy);
+
+	if (priv->loop)
+		g_main_loop_quit (priv->loop);
 }
 
 static void
@@ -258,9 +262,9 @@ brasero_pk_install_file_requirement (BraseroPK *package,
 
 	g_dbus_proxy_call (priv->proxy,
 				      "InstallProvideFiles",
-				      g_variant_new ("(uass)",
+				      g_variant_new ("(u^ass)",
 						     xid,
-						     package,
+						     missing_files->pdata,
 						     "hide-confirm-search,hide-finished,hide-warning"),
 				      G_DBUS_CALL_FLAGS_NONE,
 				      -1,



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