From c5e44714b1d86b072d34b2f80b734eb7afa6f10d Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 27 Aug 2002 09:39:00 +0000 Subject: when editing a removable:// medium, warn that you need the medium in the drive --- edit-urpm-sources.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'edit-urpm-sources.pl') diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index 0e73cd12..edaf2ef1 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -178,6 +178,9 @@ sub edit_callback { if ($w->main) { my ($name, $update, $ignore) = map { $medium->{$_} } qw(name update ignore); my ($url, $with_hdlist) = ($url_entry->get_text, $hdlist_entry->get_text); + $url =~ m|^removable://| and (interactive_msg(_("You need to insert the medium to continue"), + _("In order to save the changes, you need to insert the medium in the drive."), + yesno => 1, text => { yes => _("Ok"), no => _("Cancel") }) or return 0); standalone::explanations("Removing medium $name"); $urpm->select_media($name); $urpm->remove_selected_media; -- cgit v1.2.1