summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-07-28 13:13:08 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-07-28 13:13:08 +0000
commitefd63ad315f0716cc172cf6c5315aee9c70c531a (patch)
tree9f5204eb6019ac258e98a50c106818266daec55a
parent389b9f2d3a0995ac14c93ca7e98729cabcdb8df4 (diff)
downloadurpmi-efd63ad315f0716cc172cf6c5315aee9c70c531a.tar
urpmi-efd63ad315f0716cc172cf6c5315aee9c70c531a.tar.gz
urpmi-efd63ad315f0716cc172cf6c5315aee9c70c531a.tar.bz2
urpmi-efd63ad315f0716cc172cf6c5315aee9c70c531a.tar.xz
urpmi-efd63ad315f0716cc172cf6c5315aee9c70c531a.zip
remove unused reasons from translate_why_unselected
Patch from Anssi Hannula
-rw-r--r--urpm/select.pm4
1 files changed, 0 insertions, 4 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 28b38d91..ff144d39 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -557,12 +557,8 @@ sub translate_why_unselected_one {
my $obj = $state->{rejected}{$fullname};
my $rb = $obj->{backtrack};
- my @froms = keys %{$rb->{closure} || {}};
my @unsatisfied = @{$rb->{unsatisfied} || []};
- my @conflicts = keys(%$rb) ? () : keys %{$obj->{closure}};
my $s = join ", ", (
- (map { N("due to missing %s", $_) } @froms),
- (map { N("due to already installed %s", $_) } @conflicts),
(map { N("due to unsatisfied %s", $_) } uniq(map {
#- XXX in theory we shouldn't need this, dependencies (and not ids) should
#- already be present in @unsatisfied. But with biarch packages this is