diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-11-16 20:11:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-11-16 20:11:40 +0000 |
commit | 821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3 (patch) | |
tree | 510b9d319d458164cc4044e40721afc4940d4ba3 /urpm/select.pm | |
parent | 3a1c459f23b0b1f7e353d80602d1b189e61ef8e2 (diff) | |
download | urpmi-821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3.tar urpmi-821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3.tar.gz urpmi-821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3.tar.bz2 urpmi-821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3.tar.xz urpmi-821b7ee30c712f8ffa3bfc38eeaf8e99be786fa3.zip |
(find_packages_to_remove) make it clearer
Diffstat (limited to 'urpm/select.pm')
-rw-r--r-- | urpm/select.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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) |