From b0f0f253ac206a0ae0800777fca97375107458a9 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 23 Jan 2012 18:07:40 +0100 Subject: [PATCH] Fix display of installed version for packages, which have multiple slots installed. Follow-up to commit 8118be36842a2db2eb72538e21a3b343773b3365. --- pym/_emerge/resolver/output.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/resolver/output.py b/pym/_emerge/resolver/output.py index b10e80227..ed72b23b6 100644 --- a/pym/_emerge/resolver/output.py +++ b/pym/_emerge/resolver/output.py @@ -755,8 +755,9 @@ class Display(object): installed_versions = self.vardb.match_pkgs(pkg.cp) if self.vardb.cpv_exists(pkg.cpv): addl = " "+yellow("R")+pkg_info.fetch_symbol+" " - if not self.quiet_repo_display and installed_versions[0].repo != pkg.repo: - myoldbest = installed_versions + installed_version = self.vardb.match_pkgs(pkg.cpv)[0] + if not self.quiet_repo_display and installed_version.repo != pkg.repo: + myoldbest = [installed_version] if pkg_info.ordered: if pkg_info.merge: self.counters.reinst += 1 -- 2.26.2