summaryrefslogtreecommitdiffstats
path: root/urpm/orphans.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r--urpm/orphans.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index ceb9a3e0..42d8ea42 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -78,8 +78,9 @@ sub _selected_unrequested {
require urpm::select;
map {
if (my $from = $selected->{$_}{from}) {
- my $name = $urpm->{depslist}[$_]->name;
- urpm::select::was_pkg_name_installed($rejected, $name) ? () :
+ my $pkg = $urpm->{depslist}[$_];
+ my $name = $pkg->name;
+ $pkg->flag_requested || urpm::select::was_pkg_name_installed($rejected, $name) ? () :
($name => "(required by " . $from->fullname . ")");
} elsif ($selected->{$_}{suggested}) {
($urpm->{depslist}[$_]->name => "(suggested)");