summaryrefslogtreecommitdiffstats
path: root/gurpmi.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-06 11:18:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-06 11:18:42 +0000
commit4db08b3d13a35be4d7627c1160c47381202ff551 (patch)
treebc7a31e7efc3ea2de01d2c6d8563b0d9da928111 /gurpmi.pm
parent7892f9bb78b579fa587e2a89a2740230eeaca0e8 (diff)
downloadurpmi-4db08b3d13a35be4d7627c1160c47381202ff551.tar
urpmi-4db08b3d13a35be4d7627c1160c47381202ff551.tar.gz
urpmi-4db08b3d13a35be4d7627c1160c47381202ff551.tar.bz2
urpmi-4db08b3d13a35be4d7627c1160c47381202ff551.tar.xz
urpmi-4db08b3d13a35be4d7627c1160c47381202ff551.zip
Patch by Titi for gurpmi, to avoid asking confirmation when the new option
--auto is given
Diffstat (limited to 'gurpmi.pm')
-rw-r--r--gurpmi.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gurpmi.pm b/gurpmi.pm
index 0590412a..6c670e87 100644
--- a/gurpmi.pm
+++ b/gurpmi.pm
@@ -30,6 +30,7 @@ gurpmi version $urpm::VERSION
Usage :
gurpmi <rpm> [ <rpm>... ]
Options :
+ --auto
--auto-select
--no-verify-rpm
--media media1,...
@@ -63,7 +64,7 @@ sub parse_command_line {
foreach (@ARGV_expanded) {
if ($nextopt) { $options{$nextopt} = $_; undef $nextopt; next }
if (/^-/) {
- if (/^--(no-verify-rpm|auto-select)$/) {
+ if (/^--(no-verify-rpm|auto-select|auto)$/) {
$options{$1} = 1;
next;
}
@@ -80,7 +81,8 @@ sub parse_command_line {
push @all_rpms, $_;
}
}
- $options{'auto-select'} || @all_rpms + @names or fatal(N("No packages specified"));
+ $options{'auto-select'} || @all_rpms + @names
+ or fatal(N("No packages specified"));
return @all_rpms;
}