Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=307d7f7a18744230dbd7153edfc8ebf7a8bfe739
commit 307d7f7a18744230dbd7153edfc8ebf7a8bfe739
Author: Priyank <[EMAIL PROTECTED]>
Date: Tue Sep 11 23:50:11 2007 +0530
gfpm-interface: cb_gfpm_install_file_clicked(): hide the progress bar if gfpm
fails to prepare the transaction.
diff --git a/src/gfpm-interface.c b/src/gfpm-interface.c
index 5d48077..bb4fcb5 100644
--- a/src/gfpm-interface.c
+++ b/src/gfpm-interface.c
@@ -1501,7 +1501,10 @@ cb_gfpm_install_file_clicked (GtkButton *button,
gpointer data)
/* add the target */
pacman_trans_addtarget ((char*)fpm);
if (gfpm_trans_prepare(trans_data) == -1)
+ {
+ gfpm_progress_show (FALSE);
goto cleanup;
+ }
if (pacman_trans_commit(&trans_data) == -1)
{
str = g_strdup_printf (_("Failed to commit transaction (%s)\n"),
pacman_strerror (pm_errno));
@@ -1520,6 +1523,7 @@ cb_gfpm_install_file_clicked (GtkButton *button, gpointer
data)
gtk_widget_hide (gfpm_inst_from_file_dlg);
if (gfpm_progress_is_autoclose_checkbtn_set())
gfpm_progress_show (FALSE);
+
return;
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git