diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-24 16:15:29 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-24 16:15:29 +0000 |
commit | 966c3455e83e8421f9e76b73502477af2d5397b2 (patch) | |
tree | 9b22efb6752d67345c049ce5befc8c980142d46c /gurpmi2 | |
parent | 27f824577805d11bd50f5fcdefa4343c5b32b028 (diff) | |
download | urpmi-966c3455e83e8421f9e76b73502477af2d5397b2.tar urpmi-966c3455e83e8421f9e76b73502477af2d5397b2.tar.gz urpmi-966c3455e83e8421f9e76b73502477af2d5397b2.tar.bz2 urpmi-966c3455e83e8421f9e76b73502477af2d5397b2.tar.xz urpmi-966c3455e83e8421f9e76b73502477af2d5397b2.zip |
Add support for --no-verify-rpm to gurpmi
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -41,16 +41,7 @@ sub wait_label { sync(); } -#- Parse command line -my (@all_rpms); -foreach (@ARGV) { - if (/^-/) { - /^--?[hv?]/ and usage(); - fatal(N("Unknown option %s", $_)); - } - push @all_rpms, $_; -} -@all_rpms or fatal(N("No packages specified")); +my @all_rpms = gurpmi::parse_command_line(); $> and fatal(N("Must be root")); @@ -107,6 +98,7 @@ sub configure_urpm { $urpm->exlock_rpm_db; $urpm->shlock_urpmi_db; $urpm->configure; + $urpm->{options}{'verify-rpm'} = 0 if $gurpmi::options{'no-verify-rpm'}; #- default options values exists $urpm->{options}{$_} or $urpm->{options}{$_} = 1 foreach qw(post-clean verify-rpm split-length); $urpm->{options}{'split-level'} = 20 unless exists $urpm->{options}{'split-level'}; |