From d868dd62a1c51e9829a8fe4eb2342d4c5226182d Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Sun, 19 Sep 2010 20:13:41 +0200 Subject: [PATCH] slot collision handler: Fix bug in atom pretty printer for =* atoms --- pym/_emerge/resolver/slot_collision.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pym/_emerge/resolver/slot_collision.py b/pym/_emerge/resolver/slot_collision.py index e68543bf5..72075259f 100644 --- a/pym/_emerge/resolver/slot_collision.py +++ b/pym/_emerge/resolver/slot_collision.py @@ -1,3 +1,6 @@ +# Copyright 2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + from __future__ import print_function from _emerge.AtomArg import AtomArg @@ -281,6 +284,11 @@ class slot_conflict_handler(object): op = atom.operator ver = cpv_getversion(atom.cpv) slot = atom.slot + + if op == "=*": + op = "=" + ver += "*" + atom_str = atom_str.replace(op, colorize("BAD", op), 1) start = atom_str.rfind(ver) -- 2.26.2