summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-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 ();