aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-04 15:05:33 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-04 15:05:33 +0000
commit7e4f6771db0a5c8113b02b50e06be703a0e505a2 (patch)
treeae4181cd10c2b3ab104cfe649f4521386306c210
parent73a2c87efd0d9922414df96082de95569a58ab6d (diff)
downloadrpmdrake-7e4f6771db0a5c8113b02b50e06be703a0e505a2.tar
rpmdrake-7e4f6771db0a5c8113b02b50e06be703a0e505a2.tar.gz
rpmdrake-7e4f6771db0a5c8113b02b50e06be703a0e505a2.tar.bz2
rpmdrake-7e4f6771db0a5c8113b02b50e06be703a0e505a2.tar.xz
rpmdrake-7e4f6771db0a5c8113b02b50e06be703a0e505a2.zip
(extract_header) display a progress bar while fetching XML metadata
(#37264) (needs urpmi-5.3)
-rw-r--r--Rpmdrake/pkg.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 876c6100..3072072e 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -112,7 +112,11 @@ sub extract_header {
$urpm->{log}("getting information from rpms from $dir");
} else {
foreach my $xml_info ('info', 'files', 'changelog') {
- if (my $xml_info_file = urpm::media::any_xml_info($urpm, $medium, $xml_info, undef)) {
+ my $gurpm = Rpmdrake::gurpm->new(N("Please wait"), transient => $::main_window);
+ if (my $xml_info_file = urpm::media::any_xml_info($urpm, $medium, $xml_info, undef, sub {
+ download_callback($gurpm, @_)
+ or goto header_non_available;
+ })) {
require urpm::xml_info;
require urpm::xml_info_pkg;
$urpm->{log}("getting information from $xml_info_file");