Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 675756
Collapse All | Expand All

(-)a/lib/_emerge/resolver/output.py (-5 / +10 lines)
Lines 1-4 Link Here
1
# Copyright 2010-2018 Gentoo Foundation
1
# Copyright 2010-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
"""Resolver output display operation.
4
"""Resolver output display operation.
Lines 673-681 class Display(object): Link Here
673
			pkg_info.previous_pkg = self.vardb.match_pkgs(
673
			pkg_info.previous_pkg = self.vardb.match_pkgs(
674
				Atom('=' + pkg.cpv))[0]
674
				Atom('=' + pkg.cpv))[0]
675
		else:
675
		else:
676
			slot_matches = self.vardb.match_pkgs(pkg.slot_atom)
676
			cp_slot_matches = self.vardb.match_pkgs(pkg.slot_atom)
677
			if slot_matches:
677
			if cp_slot_matches:
678
				pkg_info.previous_pkg = slot_matches[0]
678
				pkg_info.previous_pkg = cp_slot_matches[0]
679
			else:
680
				cp_matches = self.vardb.match_pkgs(Atom(pkg.cp))
681
				if cp_matches:
682
					# Use highest installed other-slot package instance.
683
					self.vardb._cpv_sort_ascending(cp_matches)
684
					pkg_info.previous_pkg = cp_matches[-1]
679
685
680
		return pkg_info
686
		return pkg_info
681
687
682
- 

Return to bug 675756