From 6e97922320818b239395e68044d62019a6771994 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 9 Feb 2006 15:04:34 +0000 Subject: urpme needs to support --repackage too --- urpme | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'urpme') diff --git a/urpme b/urpme index 12fe0cd1..9d226c0d 100644 --- a/urpme +++ b/urpme @@ -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, $usedistrib, $force, $noscripts, @l); +our ($root, $test, $parallel, $auto, $matches, $verbose, $usedistrib, $force, $noscripts, $repackage, @l); # Translator: Add here the keys which might be pressed in the "No"-case. my $noexpr = N("Nn"); # Translator: Add here the keys which might be pressed in the "Yes"-case. @@ -44,6 +44,7 @@ usage: ") . N(" --test - verify if the removal can be achieved correctly. ") . N(" --force - force invocation even if some packages do not exist. ") . N(" --parallel - distributed urpmi across machines of alias. +") . N(" --repackage - Re-package the files before erasing ") . N(" --root - use another root for rpm removal. ") . N(" --noscripts - do not execute package scriptlet(s). ") . N(" --use-distrib - configure urpme on the fly from a distrib tree, useful @@ -133,6 +134,7 @@ print "\n" . N("removing %s", join(' ', sort @toremove)) . "\n"; force => $force, translate_message => 1, noscripts => $noscripts, + repackage => $repackage || $urpm->{options}{repackage}, ) : $urpm->install( \@toremove, {}, {}, @@ -140,6 +142,7 @@ print "\n" . N("removing %s", join(' ', sort @toremove)) . "\n"; force => $force, translate_message => 1, noscripts => $noscripts, + repackage => $repackage || $urpm->{options}{repackage}, ); #- Warning : the following message is parsed in urpm::parallel_* -- cgit v1.2.1