summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-07-29 14:23:13 +0000
committerFrancois Pons <fpons@mandriva.com>2003-07-29 14:23:13 +0000
commita9a0a2d4e90fdf8a27cac2da7c17ce1cd2a1de96 (patch)
tree86fa9e555b0e0b5e8ee4b8c74e1ee3487d8bb802
parentfbefb21b3c2bde99c75bb16db07f65b5491dd2e3 (diff)
downloadurpmi-a9a0a2d4e90fdf8a27cac2da7c17ce1cd2a1de96.tar
urpmi-a9a0a2d4e90fdf8a27cac2da7c17ce1cd2a1de96.tar.gz
urpmi-a9a0a2d4e90fdf8a27cac2da7c17ce1cd2a1de96.tar.bz2
urpmi-a9a0a2d4e90fdf8a27cac2da7c17ce1cd2a1de96.tar.xz
urpmi-a9a0a2d4e90fdf8a27cac2da7c17ce1cd2a1de96.zip
handle option force with parallel remove.
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 62dca97c..996c4dc2 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2891,7 +2891,7 @@ sub find_packages_to_remove {
push @notfound, $_;
}
- if (@notfound && @$l > 1) {
+ if (!$options{force} && @notfound && @$l > 1) {
$options{callback_notfound} and $options{callback_notfound}->($urpm, @notfound)
or return ();
}
@@ -2911,7 +2911,7 @@ sub find_packages_to_remove {
push @m, scalar $p->fullname;
});
- if (@notfound) {
+ if (!$options{force} && @notfound) {
unless (@m) {
$options{callback_notfound} and $options{callback_notfound}->($urpm, @notfound)
or return ();