summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-07-28 13:14:16 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-07-28 13:14:16 +0000
commitfdae4ce8d7357ad04d55888c2b294648b9f58155 (patch)
treebd8e6f88890538b3742a5685a31431a4160fbedd
parentefd63ad315f0716cc172cf6c5315aee9c70c531a (diff)
downloadurpmi-fdae4ce8d7357ad04d55888c2b294648b9f58155.tar
urpmi-fdae4ce8d7357ad04d55888c2b294648b9f58155.tar.gz
urpmi-fdae4ce8d7357ad04d55888c2b294648b9f58155.tar.bz2
urpmi-fdae4ce8d7357ad04d55888c2b294648b9f58155.tar.xz
urpmi-fdae4ce8d7357ad04d55888c2b294648b9f58155.zip
translate_why_unselect: add "conflicts" reason
Patch by Anssi Hannula, fixes bug #52153
-rw-r--r--urpm/select.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index ff144d39..59c56c6e 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -558,7 +558,9 @@ sub translate_why_unselected_one {
my $obj = $state->{rejected}{$fullname};
my $rb = $obj->{backtrack};
my @unsatisfied = @{$rb->{unsatisfied} || []};
+ my @conflicts = @{$rb->{conflicts} || []};
my $s = join ", ", (
+ (map { N("due to conflicts with %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