From 821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 16 Nov 2012 20:11:40 +0000 Subject: (find_packages_to_remove) make it clearer --- urpm/select.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'urpm/select.pm') diff --git a/urpm/select.pm b/urpm/select.pm index 455cf82c..13f1bf6f 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -489,9 +489,12 @@ sub find_packages_to_remove { push @m, scalar $p->fullname; $found = 1; }); - $found and next; - push @notfound, $_; + if ($found) { + next; + } else { + push @notfound, $_; + } } if (!$options{force} && @notfound && @$l > 1) { $options{callback_notfound} && $options{callback_notfound}->($urpm, @notfound) -- cgit v1.2.1