diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-25 14:45:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-25 14:45:06 +0000 |
commit | 7fc117b5023b925488761ecb3cc31cc1585487d4 (patch) | |
tree | 3937076fe2f5ffd13b814f6cb8a827c7b2b349eb /edit-urpm-sources.pl | |
parent | 51600bf37528b1ea33f34d3a27091125533002e5 (diff) | |
download | rpmdrake-7fc117b5023b925488761ecb3cc31cc1585487d4.tar rpmdrake-7fc117b5023b925488761ecb3cc31cc1585487d4.tar.gz rpmdrake-7fc117b5023b925488761ecb3cc31cc1585487d4.tar.bz2 rpmdrake-7fc117b5023b925488761ecb3cc31cc1585487d4.tar.xz rpmdrake-7fc117b5023b925488761ecb3cc31cc1585487d4.zip |
Make update media window prettier
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-x | edit-urpm-sources.pl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index 49532029..879f01b4 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -897,11 +897,7 @@ sub mainwindow { interactive_msg('rpmdrake', N("This medium needs to be updated to be usable. Update it now ?"), yesno => 1, - ) and do { - my $wait = wait_msg(N("Please wait, updating medium \"%s\"...", $urpm->{media}[$path]{name})); - $reread_media->($urpm->{media}[$path]{name}); - remove_wait_msg($wait); - } + ) and $reread_media->($urpm->{media}[$path]{name}); } }, ); @@ -967,7 +963,12 @@ sub mainwindow { delete $_->{ignore}; } $urpm->select_media($name); - $urpm->update_media(noclean => 1, nolock => 1); + update_sources_check( + $urpm, + { nolock => 1 }, + N_("Unable to update medium, errors reported:\n\n%s"), + $name, + ); } $list->clear; $list->append_set(0 => !$_->{ignore}, 1 => ! !$_->{update}, 2 => $_->{name}) foreach grep { ! $_->{external} } @{$urpm->{media}}; |