diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-05 14:31:37 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-05 14:31:37 +0000 |
commit | 4388f345f41d5f74c70b23e99e3751e76666cb62 (patch) | |
tree | f52c914c166ec667e8a89537d7fec99e11217dfa | |
parent | 1cd4b8ae9a584f841280be29324a0f1e050f55f2 (diff) | |
download | rpmdrake-4388f345f41d5f74c70b23e99e3751e76666cb62.tar rpmdrake-4388f345f41d5f74c70b23e99e3751e76666cb62.tar.gz rpmdrake-4388f345f41d5f74c70b23e99e3751e76666cb62.tar.bz2 rpmdrake-4388f345f41d5f74c70b23e99e3751e76666cb62.tar.xz rpmdrake-4388f345f41d5f74c70b23e99e3751e76666cb62.zip |
explain what's going on, when we install from a file, so that one-click adding people will get that explanation
-rwxr-xr-x | gurpmi.addmedia | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia index 14fa5518..5751008b 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -54,8 +54,10 @@ if ($@) { } $::isStandalone = 1; +my $fromfile; if (@ARGV == 1 && $ARGV[0] =~ /\.urpm-media$/) { @ARGV = split /\n/, cat_($ARGV[0]); + $fromfile = 1; } my $update = 0; @@ -70,6 +72,15 @@ if ($url !~ m,^(file://|ftp://|http://|removable://), || $with && !$with_hdlist) POSIX::_exit(-1); } +$fromfile and interactive_msg('gurpmi.addmedia', +N("%s + +Is it ok to continue?", +N("You are about to add a new packages medium, `%s'. +That means you will be able to add new software packages +to your system from that new medium.", $name)), + yesno => 1) or myexit(0); + my $urpm = urpm->new; $urpm->read_config; if (add_medium_and_check($urpm, { probe_with => !$with }, $name, $url, $with_hdlist, update => $update)) { |