aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-26 09:50:56 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-26 09:50:56 +0000
commitd0688550f842f80b31eaa63abd92cb696532c16b (patch)
tree84fa17f7b964fd5c8384de621a66436bee2ccc46 /rpmdrake.pm
parentfbdfe3e4d8740f86bef69bbf00e6f5ce1814e3a6 (diff)
downloadrpmdrake-d0688550f842f80b31eaa63abd92cb696532c16b.tar
rpmdrake-d0688550f842f80b31eaa63abd92cb696532c16b.tar.gz
rpmdrake-d0688550f842f80b31eaa63abd92cb696532c16b.tar.bz2
rpmdrake-d0688550f842f80b31eaa63abd92cb696532c16b.tar.xz
rpmdrake-d0688550f842f80b31eaa63abd92cb696532c16b.zip
- MandrakeUpdate: didn't notify the user when it failed to retrieve
the hdlist or synthesis file from a mirror. As a consequence no update was ever appearing.
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm16
1 files changed, 15 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 4208447a..baf5b820 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -435,7 +435,21 @@ sub update_sources {
my ($urpm, %options) = @_;
my $w = wait_msg(my $label = Gtk2::Label->new(N("Please wait, updating media...")),
widgets => [ my $pb = gtkset_size_request(Gtk2::ProgressBar->new, 300, -1) ]);
- $urpm->update_media(%options, callback => sub { show_urpm_progress($label, $pb, @_) });
+ $urpm->update_media(%options,
+ callback => sub {
+ my ($type, $media) = @_;
+ if ($type eq 'failed') {
+ fatal_msg(N("Error retrieving packages"),
+N("It's impossible to retrieve the list of new packages from the media
+`%s'. Either this update media is misconfigured, and in this case
+you should use the Software Media Manager to remove it and re-add it in order
+to reconfigure it, either it is currently unreachable and you should retry
+later.",
+ $media));
+ } else {
+ show_urpm_progress($label, $pb, @_);
+ }
+ });
remove_wait_msg($w);
}