summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-24 12:52:47 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-24 12:52:47 +0000
commit43f2423d3577944f7244c091593e0a805933c13c (patch)
tree7522c6073de3e029e7784a03fa2090e2507dc79c
parent9a60f5eeb8b8b152420060dc181cbd585df4d031 (diff)
downloadurpmi-43f2423d3577944f7244c091593e0a805933c13c.tar
urpmi-43f2423d3577944f7244c091593e0a805933c13c.tar.gz
urpmi-43f2423d3577944f7244c091593e0a805933c13c.tar.bz2
urpmi-43f2423d3577944f7244c091593e0a805933c13c.tar.xz
urpmi-43f2423d3577944f7244c091593e0a805933c13c.zip
enable to report packages signature checking in global progress bar dialog
-rw-r--r--NEWS2
-rw-r--r--gurpm/RPMProgressDialog.pm14
2 files changed, 16 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ce5073c5..ce9d6c56 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- library:
+ o enable to report packages signature checking in global progress bar dialog
- gurpmi2:
o improved layout:
* only the package list needs a scrolling bar
diff --git a/gurpm/RPMProgressDialog.pm b/gurpm/RPMProgressDialog.pm
index e7625e93..d9fd8cc7 100644
--- a/gurpm/RPMProgressDialog.pm
+++ b/gurpm/RPMProgressDialog.pm
@@ -24,6 +24,7 @@ How to use:
$w->init_progressbar;
urpm::main_loop::run($urpm, $state, $nb, \@ask_unselect, {
trans_log => \&gurpm::RPMProgressDialog::callback_download,
+ pre_check_sig => \&gurpm::RPMProgressDialog::pre_check_sig,
inst => \&gurpm::RPMProgressDialog::callback_inst,
trans => \&gurpm::RPMProgressDialog::callback_inst,
uninst => \&gurpm::RPMProgressDialog::callback_inst,
@@ -274,6 +275,19 @@ sub canceled {
=over 4
+=item callback_pre_check_sig()
+
+This callback is called when checking packages before installing them.
+
+Its purpose is to display installation progress in the dialog.
+
+=cut
+
+sub callback_pre_check_sig {
+ $mainw->set_progresslabel(N("Verifying package signatures..."));
+ $mainw->sync;
+}
+
=item callback_inst($urpm, $type, $id, $subtype, $amount, $total)
This callback is called when a new RPM DB transaction is created and