diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-03 17:03:16 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-03 17:03:16 +0000 |
commit | 17a223e79f0b4b948e876f558fe4d1da2b44b46d (patch) | |
tree | 3b7fed2492c7d12a972b276fa8a212eb3346168c /gurpmi.pm | |
parent | aea6ca1de499e91e990648883b997a00bacb2b07 (diff) | |
download | urpmi-17a223e79f0b4b948e876f558fe4d1da2b44b46d.tar urpmi-17a223e79f0b4b948e876f558fe4d1da2b44b46d.tar.gz urpmi-17a223e79f0b4b948e876f558fe4d1da2b44b46d.tar.bz2 urpmi-17a223e79f0b4b948e876f558fe4d1da2b44b46d.tar.xz urpmi-17a223e79f0b4b948e876f558fe4d1da2b44b46d.zip |
Add --auto-select option in gurpmi first (non-root) half
Diffstat (limited to 'gurpmi.pm')
-rw-r--r-- | gurpmi.pm | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ package gurpmi; #- Copyright (C) 2005 MandrakeSoft SA -#- Copyright (C) 2005 Mandriva SA +#- Copyright (C) 2005, 2006 Mandriva SA #- This is needed because text printed by Gtk2 will always be encoded #- in UTF-8; we first check if LC_ALL is defined, because if it is, @@ -30,6 +30,7 @@ gurpmi version $urpm::VERSION Usage : gurpmi <rpm> [ <rpm>... ] Options : + --auto-select --no-verify-rpm USAGE exit 0; @@ -62,6 +63,10 @@ sub parse_command_line { $options{'no-verify-rpm'} = 1; next; } + if ($_ eq '--auto-select') { + $options{'auto-select'} = 1; + next; + } /^--?[hv?]/ and usage(); fatal(N("Unknown option %s", $_)); } @@ -71,7 +76,7 @@ sub parse_command_line { push @all_rpms, $_; } } - @all_rpms + @names or fatal(N("No packages specified")); + $options{'auto-select'} || @all_rpms + @names or fatal(N("No packages specified")); return @all_rpms; } |