diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-09 15:04:34 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-09 15:04:34 +0000 |
commit | 6e97922320818b239395e68044d62019a6771994 (patch) | |
tree | 3f888025c955c78a9b1a8f6c3744c53a4acbee1a | |
parent | 8fc15349906b34217fb235a05d186fcce2ee4c50 (diff) | |
download | urpmi-6e97922320818b239395e68044d62019a6771994.tar urpmi-6e97922320818b239395e68044d62019a6771994.tar.gz urpmi-6e97922320818b239395e68044d62019a6771994.tar.bz2 urpmi-6e97922320818b239395e68044d62019a6771994.tar.xz urpmi-6e97922320818b239395e68044d62019a6771994.zip |
urpme needs to support --repackage too
-rw-r--r-- | pod/urpme.8.pod | 7 | ||||
-rw-r--r-- | urpm/args.pm | 1 | ||||
-rw-r--r-- | urpme | 5 |
3 files changed, 12 insertions, 1 deletions
diff --git a/pod/urpme.8.pod b/pod/urpme.8.pod index 1bf956f4..d36b1d0c 100644 --- a/pod/urpme.8.pod +++ b/pod/urpme.8.pod @@ -56,6 +56,13 @@ urpmi (currently, urpmi-parallel-ka-run or urpmi-parallel-ssh are available) and which machines should be updated. This alias is defined in the file F</etc/urpmi/parallel.cfg> as described below. +=item B<--repackage> + +Save previous state of upgraded packages; in other words, save the old +rpms (usually in F</var/spool/repackage>, but you can override this with +an rpm macro.) This is equivalent to providing the B<--repackage> flag to +rpm. + =item B<--root> I<directory> Use the file system tree rooted for rpm install. All operations and diff --git a/urpm/args.pm b/urpm/args.pm index 58d42bed..ab0d7863 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -149,6 +149,7 @@ my %options_spec = ( v => \$::verbose, a => \$::matches, noscripts => \$::noscripts, + repackage => \$::repackage, }, #- see also below, autogenerated callbacks @@ -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_* |