From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 23 Jan 2012 17:07:40 +0000 (+0100) Subject: Fix display of installed version for packages, which have multiple slots X-Git-Tag: v2.2.0_alpha85~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0f0f253ac206a0ae0800777fca97375107458a9;p=portage.git Fix display of installed version for packages, which have multiple slots installed. Follow-up to commit 8118be36842a2db2eb72538e21a3b343773b3365. --- 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