summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/pkgs.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 80aa95b92..b7414f8b2 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -268,10 +268,8 @@ sub selectPackage {
my @l = $packages->resolve_requested($packages->{rpmdb}, $state, packageRequest($packages, $pkg) || {},
callback_choices => \&packageCallbackChoices);
- if (!member($pkg, @l) && $state->{rejected}) {
- log::l("ERROR: selecting " . $pkg->name . " failed");
- require Data::Dumper;
- log::l(Data::Dumper::Dumper($state->{rejected}));
+ if (!exists $state->{selected}{$pkg->id}) {
+ log::l("ERROR: selecting " . $pkg->name . " failed: " . urpm::select::translate_why_unselected_one($packages, $state, scalar $pkg->fullname));
}
if ($b_base) {