From 6a25d98dfbed84d0294fbff6e0db99113c6490b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 6 Sep 2010 17:09:59 +0200 Subject: Workaround for bug#557715 --- portato/backend/portage/system.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 030c120..b86a8f7 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -289,12 +289,15 @@ class PortageSystem (SystemInterface): if len(inst) > 1: myslots = set() + splitp = p.split('[', 1) # split away the useflags for i in inst: # get the slots of the installed packages myslots.add(i.get_package_settings("SLOT")) myslots.add(best_p.get_package_settings("SLOT")) # add the slot of the best package in portage for slot in myslots: - crit = "%s:%s" % (p, slot) + crit = splitp[:] + crit[0] = "%s:%s" % (crit[0], slot) + crit = "[".join(crit) # re-add possible useflags append(crit, self.find_best_match(crit), inst) else: append(p, best_p, inst) -- cgit v1.2.3