aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xedit-urpm-sources.pl5
-rw-r--r--rpmdrake.spec4
2 files changed, 6 insertions, 3 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 625169ba..5bd34a66 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -133,7 +133,7 @@ really want to replace it?"), yesno => 1) or return 0;
1;
};
- my ($type, %i, %make_url);
+ my ($type, $probe, %i, %make_url);
gtkadd($w->{window},
gtkpack(Gtk2::VBox->new(0,5),
Gtk2::Label->new(N("Adding a medium:")),
@@ -153,6 +153,7 @@ really want to replace it?"), yesno => 1) or return 0;
? ($info->{login_entry}->get_text.':'.$info->{pass_entry}->get_text.'@')
: '',
$i{url};
+ $probe = $info->{hdlist_check}->get_active == 0 || $i{hdlist} eq '';
Gtk2->main_quit;
}
}),
@@ -164,7 +165,7 @@ really want to replace it?"), yesno => 1) or return 0;
$urpm->remove_selected_media;
}
add_medium_and_check($urpm, N("Please wait, adding medium..."),
- { probe_with => !$info->{hdlist_check}->get_active || $i{hdlist} eq '' },
+ { probe_with => $probe },
$i{name}, $make_url{$type}, $i{hdlist}, update => $type eq 'security');
return 1;
}
diff --git a/rpmdrake.spec b/rpmdrake.spec
index fce80f94..d141c643 100644
--- a/rpmdrake.spec
+++ b/rpmdrake.spec
@@ -102,7 +102,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Aug 18 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-32mdk
-- edit-urpm-media: handle modality in parallel and key editors
+- edit-urpm-media:
+ - handle modality in parallel and key editors
+ - fix #4914 (program crashes when trying to add a medium)
* Wed Aug 13 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-31mdk
- require root capability when run "Install Sofware" and add a new