summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-03-20 08:37:29 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-03-20 08:37:29 +0000
commit5c4584920843325858b718db6d91d900017d43c6 (patch)
treea58ade6dd918c18ddddd3011fee456528e8baf80 /urpm/select.pm
parent190b6b2cf2a94e115abc25f75c707aa9de4cd0a8 (diff)
downloadurpmi-5c4584920843325858b718db6d91d900017d43c6.tar
urpmi-5c4584920843325858b718db6d91d900017d43c6.tar.gz
urpmi-5c4584920843325858b718db6d91d900017d43c6.tar.bz2
urpmi-5c4584920843325858b718db6d91d900017d43c6.tar.xz
urpmi-5c4584920843325858b718db6d91d900017d43c6.zip
When using urpme -a, properly report when no packages could be removed, #48506
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 7bc975ac..28b38d91 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -481,6 +481,10 @@ sub find_packages_to_remove {
or return ();
}
}
+ if (!@m) {
+ $options{callback_notfound} && $options{callback_notfound}->($urpm, @$l)
+ or return ();
+ }
}
#- check if something needs to be removed.