From f866f651d88c4937d6cec784664f03290cc7c210 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 20 Aug 2008 17:02:40 +0000 Subject: - urpmi o do not write useless "foo (obsoletes foo-xxx)" in installed-through-deps.list (#42167) --- urpm/orphans.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'urpm/orphans.pm') diff --git a/urpm/orphans.pm b/urpm/orphans.pm index f68a680d..ce050319 100644 --- a/urpm/orphans.pm +++ b/urpm/orphans.pm @@ -101,7 +101,9 @@ sub _renamed_unrequested { my ($new_fn) = keys %{$rejected->{$fn}{closure}}; my ($new_n) = $new_fn =~ $fullname2name_re; - $l{$new_n} = "(obsoletes $fn)"; + if ($new_n ne $n) { + $l{$new_n} = "(obsoletes $fn)"; + } } %l; } -- cgit v1.2.1