summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-03-05 15:48:37 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-03-05 18:41:31 +0100
commit454c11f17a6955ff6d8601880fc42fc498f7343b (patch)
tree63c71e89db353684fdc90aaa0882559cd11d3308 /urpm/args.pm
parentbfc4d3f45be2e1857b712710dd8cb01a7cbfebb8 (diff)
downloadurpmi-454c11f17a6955ff6d8601880fc42fc498f7343b.tar
urpmi-454c11f17a6955ff6d8601880fc42fc498f7343b.tar.gz
urpmi-454c11f17a6955ff6d8601880fc42fc498f7343b.tar.bz2
urpmi-454c11f17a6955ff6d8601880fc42fc498f7343b.tar.xz
urpmi-454c11f17a6955ff6d8601880fc42fc498f7343b.zip
add support for --reinstall
Needs perl-URPM-5.25 (it won't work with rpm < 4.12.x)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 7207a069..26c07f0b 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -99,6 +99,7 @@ my %options_spec = (
$options{buildrequires} = 1 },
'buildrequires' => \$options{buildrequires},
'install-src' => \$::install_src,
+ reinstall => sub { $urpm->{options}{reinstall} = 1 },
clean => sub { $::clean = 1; $::noclean = 0 },
noclean => sub {
$::clean = $urpm->{options}{'pre-clean'} = $urpm->{options}{'post-clean'} = 0;