diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-12-14 17:53:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-12-14 17:53:43 +0000 |
commit | 10f5cf17a07eafe0c05759a2c7ae1278079417d0 (patch) | |
tree | d63411860db04e70f8ebd507f8647a6f19abfa49 /urpme | |
parent | 21af23759b2068a3ac62a1368b67cba83ac73813 (diff) | |
download | urpmi-10f5cf17a07eafe0c05759a2c7ae1278079417d0.tar urpmi-10f5cf17a07eafe0c05759a2c7ae1278079417d0.tar.gz urpmi-10f5cf17a07eafe0c05759a2c7ae1278079417d0.tar.bz2 urpmi-10f5cf17a07eafe0c05759a2c7ae1278079417d0.tar.xz urpmi-10f5cf17a07eafe0c05759a2c7ae1278079417d0.zip |
Add a --noscripts option to urpme
Diffstat (limited to 'urpme')
-rw-r--r-- | urpme | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -27,7 +27,7 @@ use urpm::msg; $ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"; delete @ENV{qw(ENV BASH_ENV IFS CDPATH)}; -our ($root, $test, $parallel, $auto, $matches, $verbose, $maymatch, $usedistrib, $force, @l); +our ($root, $test, $parallel, $auto, $matches, $verbose, $maymatch, $usedistrib, $force, $noscripts, @l); my $askok = N("Is this OK?"); # Translator: Add here the keys which might be pressed in the "No"-case. my $noexpr = N("Nn"); @@ -46,6 +46,7 @@ usage: ") . N(" --force - force invocation even if some packages do not exist. ") . N(" --parallel - distributed urpmi across machines of alias. ") . N(" --root - use another root for rpm removal. +") . N(" --noscripts - do not execute package scriptlet(s) ") . N(" --use-distrib - configure urpmi on the fly from a distrib tree, useful to (un)install a chroot with --root option. ") . N(" -v - verbose mode. @@ -122,8 +123,20 @@ if ($test && $auto) { #- Warning : the following message is parsed in urpm::parallel_* print "\n" . N("removing %s", join(' ', sort @toremove)) . "\n"; @l = $parallel - ? $urpm->parallel_remove(\@toremove, test => $test, force => $force, translate_message => 1) - : $urpm->install(\@toremove, {}, {}, test => $test, force => $force, translate_message => 1); + ? $urpm->parallel_remove( + \@toremove, + test => $test, + force => $force, + translate_message => 1, + noscripts => $noscripts, + ) + : $urpm->install( + \@toremove, {}, {}, + test => $test, + force => $force, + translate_message => 1, + noscripts => $noscripts, + ); #- Warning : the following message is parsed in urpm::parallel_* @l and $urpm->{fatal}(2, N("Removal failed") . ":\n" . join("\n", map { "\t$_" } @l)); |