summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-10 16:41:06 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-10 16:41:06 +0000
commit11d574238f18fe034d62956adff3ec35e804b132 (patch)
treef46db950af6f1d39eedca61034f1646849344b39
parent49fb4f3552182b2805aedfdb218eddba1f59ee43 (diff)
downloadurpmi-11d574238f18fe034d62956adff3ec35e804b132.tar
urpmi-11d574238f18fe034d62956adff3ec35e804b132.tar.gz
urpmi-11d574238f18fe034d62956adff3ec35e804b132.tar.bz2
urpmi-11d574238f18fe034d62956adff3ec35e804b132.tar.xz
urpmi-11d574238f18fe034d62956adff3ec35e804b132.zip
Add an --ignoresize option to urpmi
-rw-r--r--urpm/args.pm1
-rwxr-xr-xurpmi2
2 files changed, 3 insertions, 0 deletions
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} || [],