From 11d574238f18fe034d62956adff3ec35e804b132 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 10 Oct 2005 16:41:06 +0000 Subject: Add an --ignoresize option to urpmi --- urpm/args.pm | 1 + urpmi | 2 ++ 2 files changed, 3 insertions(+) diff --git a/urpm/args.pm b/urpm/args.pm index e803c297..b9e60087 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -115,6 +115,7 @@ my %options_spec = ( 'use-distrib=s' => \$::usedistrib, 'excludepath|exclude-path=s' => sub { $urpm->{options}{excludepath} = $_[1] }, 'excludedocs|exclude-docs' => sub { $urpm->{options}{excludedocs} = 1 }, + 'ignoresize' => sub { $urpm->{options}{ignoresize} = 1 }, 'more-choices' => sub { $urpm->{options}{morechoices} = 1 }, 'expect-install!' => \$::expect_install, 'nolock' => \$::nolock, diff --git a/urpmi b/urpmi index a0fa7b80..0bc1672e 100755 --- a/urpmi +++ b/urpmi @@ -125,6 +125,7 @@ usage: ") . N(" --test - verify if the installation can be achieved correctly. ") . N(" --excludepath - exclude path separated by comma. ") . N(" --excludedocs - exclude doc files. +") . N(" --ignoresize - don't verify disk space before installation. ") . N(" --skip - packages which installation should be skipped ") . N(" --more-choices - when several packages are found, propose more choices than the default. @@ -638,6 +639,7 @@ foreach my $set (@{$state->{transaction} || []}) { post_clean_cache => $urpm->{options}{'post-clean'}, translate_message => 1, oldpackage => $state->{oldpackage}, + nosize => $urpm->{options}{ignoresize}, ); my @l = $urpm->install( !$urpm->{options}{'allow-force'} && $set->{remove} || [], -- cgit v1.2.1