summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pod/urpme.8.pod7
-rw-r--r--urpm/args.pm1
-rw-r--r--urpme5
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
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_*