aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-27 09:39:00 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-27 09:39:00 +0000
commitc5e44714b1d86b072d34b2f80b734eb7afa6f10d (patch)
treec941debb48562de420676aa872dca2b21f25be39 /edit-urpm-sources.pl
parent5f510b5174150b755d01703c3515e51f871367dd (diff)
downloadrpmdrake-c5e44714b1d86b072d34b2f80b734eb7afa6f10d.tar
rpmdrake-c5e44714b1d86b072d34b2f80b734eb7afa6f10d.tar.gz
rpmdrake-c5e44714b1d86b072d34b2f80b734eb7afa6f10d.tar.bz2
rpmdrake-c5e44714b1d86b072d34b2f80b734eb7afa6f10d.tar.xz
rpmdrake-c5e44714b1d86b072d34b2f80b734eb7afa6f10d.zip
when editing a removable:// medium, warn that you need the medium
in the drive
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl3
1 files changed, 3 insertions, 0 deletions
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;