diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-06 14:44:22 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-06 14:44:22 +0000 |
commit | 036b4e6c8f1e9c696b04f8eb03c318ded2b60d6a (patch) | |
tree | ed393a1327ecfb30129664beb496c52e731259a4 /rpmdrake.pm | |
parent | 44e5ac18b5154508742c137c0440ac1ffd86d3ec (diff) | |
download | rpmdrake-036b4e6c8f1e9c696b04f8eb03c318ded2b60d6a.tar rpmdrake-036b4e6c8f1e9c696b04f8eb03c318ded2b60d6a.tar.gz rpmdrake-036b4e6c8f1e9c696b04f8eb03c318ded2b60d6a.tar.bz2 rpmdrake-036b4e6c8f1e9c696b04f8eb03c318ded2b60d6a.tar.xz rpmdrake-036b4e6c8f1e9c696b04f8eb03c318ded2b60d6a.zip |
An incorrect error message was produced by the software media manager
when updating a media when a previous media was disabled.
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r-- | rpmdrake.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index 56f083e1..c218988f 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -500,7 +500,9 @@ sub update_sources_interactive { Gtk2::Button->new(N("Update")), clicked => sub { $w->{retval} = any { $_->get_active } @buttons; - @media = map_index { if_($_->get_active, $urpm->{media}[$::i]{name}) } @buttons; + # list of media listed in the checkbox panel + my @buttonmedia = grep { !$_->{ignore} } @{$urpm->{media}}; + @media = map_index { if_($_->get_active, $buttonmedia[$::i]{name}) } @buttons; Gtk2->main_quit; }, ), |