summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-11 12:46:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-11 12:46:03 +0000
commitd2736a81e1df5c19bdbc6e62b028e2f18a130480 (patch)
treec9d871f56f75d39bbc5f128abecf3950f76d09c5 /urpm
parent25428f578665a94d873ea496da130059fee47fef (diff)
downloadurpmi-d2736a81e1df5c19bdbc6e62b028e2f18a130480.tar
urpmi-d2736a81e1df5c19bdbc6e62b028e2f18a130480.tar.gz
urpmi-d2736a81e1df5c19bdbc6e62b028e2f18a130480.tar.bz2
urpmi-d2736a81e1df5c19bdbc6e62b028e2f18a130480.tar.xz
urpmi-d2736a81e1df5c19bdbc6e62b028e2f18a130480.zip
- urpmi
o new option --replacepkgs (same as rpm --replacepkgs) (#16112)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm1
-rwxr-xr-xurpm/main_loop.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index b5694863..e580257b 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -95,6 +95,7 @@ my %options_spec = (
$urpm->{options}{'priority-upgrade'} = '';
},
force => \$::force,
+ replacepkgs => \$options{replacepkgs},
'no-suggests' => sub { $urpm->{options}{'no-suggests'} = 1 },
'allow-nodeps' => sub { $urpm->{options}{'allow-nodeps'} = 1 },
'allow-force' => sub { $urpm->{options}{'allow-force'} = 1 },
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 5952466a..d631347e 100755
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -161,6 +161,7 @@ foreach my $set (@{$state->{transaction} || []}) {
repackage => $urpm->{options}{repackage},
post_clean_cache => $urpm->{options}{'post-clean'},
oldpackage => $state->{oldpackage},
+ replacepkgs => $options{replacepkgs},
nosize => $urpm->{options}{ignoresize},
ignorearch => $urpm->{options}{ignorearch},
noscripts => $urpm->{options}{noscripts},