[gnome-packagekit] Only run the update if the dep check was successful



commit b463f2f577e20a382e1d862ebffc7be036118991
Author: Richard Hughes <richard hughsie com>
Date:   Tue Aug 18 12:13:18 2009 +0100

    Only run the update if the dep check was successful

 src/gpk-update-viewer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 5a9a4db..20c6a22 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -1791,7 +1791,7 @@ gpk_update_viewer_finished_cb (PkClient *client, PkExitEnum exit, guint runtime,
 	}
 
 	/* finished depends check, show any extras */
-	if (role == PK_ROLE_ENUM_GET_DEPENDS) {
+	if (exit == PK_EXIT_ENUM_SUCCESS && role == PK_ROLE_ENUM_GET_DEPENDS) {
 
 		/* show deps dialog */
 		list = pk_client_get_package_list (client);
@@ -1946,6 +1946,8 @@ gpk_update_viewer_finished_cb (PkClient *client, PkExitEnum exit, guint runtime,
 	/* we pressed cancel */
 	if (exit != PK_EXIT_ENUM_SUCCESS) {
 		gpk_update_viewer_undisable_packages ();
+		widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_install"));
+		gtk_widget_set_sensitive (widget, TRUE);
 	}
 }
 



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