From 19d3a0474c69d30e4475a8bd5accddac2267576e Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 15 Nov 2005 15:00:43 +0000 Subject: Add a --noscripts 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 b41e24fe..ae4eb444 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -122,6 +122,7 @@ my %options_spec = ( 'excludepath|exclude-path=s' => sub { $urpm->{options}{excludepath} = $_[1] }, 'excludedocs|exclude-docs' => sub { $urpm->{options}{excludedocs} = 1 }, 'ignoresize' => sub { $urpm->{options}{ignoresize} = 1 }, + noscripts => sub { $urpm->{options}{noscripts} = 1 }, 'more-choices' => sub { $urpm->{options}{morechoices} = 1 }, 'expect-install!' => \$::expect_install, 'nolock' => \$::nolock, diff --git a/urpmi b/urpmi index 2222d518..89666f42 100755 --- a/urpmi +++ b/urpmi @@ -124,6 +124,7 @@ usage: ") . N(" --excludepath - exclude path separated by comma. ") . N(" --excludedocs - exclude doc files. ") . N(" --ignoresize - don't verify disk space before installation. +") . N(" --noscripts - do not execute package scriptlet(s) ") . N(" --skip - packages which installation should be skipped ") . N(" --more-choices - when several packages are found, propose more choices than the default. @@ -645,6 +646,7 @@ foreach my $set (@{$state->{transaction} || []}) { translate_message => 1, oldpackage => $state->{oldpackage}, nosize => $urpm->{options}{ignoresize}, + noscripts => $urpm->{options}{noscripts}, ); my @l = $urpm->install( !$urpm->{options}{'allow-force'} && $set->{remove} || [], -- cgit v1.2.1