diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-15 15:00:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-15 15:00:43 +0000 |
commit | 19d3a0474c69d30e4475a8bd5accddac2267576e (patch) | |
tree | dc04e909b6c626bf0f0dba4b03b5140a74a9f0ad | |
parent | 10fab33bd78df1805cfc7cec20674676d66c74d9 (diff) | |
download | urpmi-19d3a0474c69d30e4475a8bd5accddac2267576e.tar urpmi-19d3a0474c69d30e4475a8bd5accddac2267576e.tar.gz urpmi-19d3a0474c69d30e4475a8bd5accddac2267576e.tar.bz2 urpmi-19d3a0474c69d30e4475a8bd5accddac2267576e.tar.xz urpmi-19d3a0474c69d30e4475a8bd5accddac2267576e.zip |
Add a --noscripts option to urpmi
-rw-r--r-- | urpm/args.pm | 1 | ||||
-rwxr-xr-x | urpmi | 2 |
2 files changed, 3 insertions, 0 deletions
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, @@ -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} || [], |