summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-14 12:49:43 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-14 12:49:43 +0000
commitfc57ebe0bf9d151fa8861c832c62ad50448408ec (patch)
treefe9b0678729ae5325de174e990ba9d02a4aa9a60 /gurpmi2
parentde3e1ade50b8ea261917d6bf5381adfb96aa86c7 (diff)
downloadurpmi-fc57ebe0bf9d151fa8861c832c62ad50448408ec.tar
urpmi-fc57ebe0bf9d151fa8861c832c62ad50448408ec.tar.gz
urpmi-fc57ebe0bf9d151fa8861c832c62ad50448408ec.tar.bz2
urpmi-fc57ebe0bf9d151fa8861c832c62ad50448408ec.tar.xz
urpmi-fc57ebe0bf9d151fa8861c832c62ad50448408ec.zip
(do_install3) implement missing ask_yes_or_no() callback
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi27
1 files changed, 7 insertions, 0 deletions
diff --git a/gurpmi2 b/gurpmi2
index f3f9c235..9b3a62a0 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -299,6 +299,13 @@ sub do_install_3 () {
}
sync();
},
+ ask_yes_or_no => sub {
+ my ($title, $msg) = @_;
+ my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'warning', 'yes-no', $msg);
+ my $response = $w->run;
+ $w->destroy;
+ return $response eq 'ok';
+ },
completed => sub {
$urpmi_lock->unlock;
$rpm_lock->unlock;