From b655ecc085de2c131b384ba853fc555d3ff083ad Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 25 May 2009 20:24:17 +0200 Subject: [PATCH] entropy.client.interfaces.trigger: revert to xorg-x11 opengl profile only when really needed --- libraries/entropy/client/interfaces/trigger.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/entropy/client/interfaces/trigger.py b/libraries/entropy/client/interfaces/trigger.py index 65bdb6d86..a20401beb 100644 --- a/libraries/entropy/client/interfaces/trigger.py +++ b/libraries/entropy/client/interfaces/trigger.py @@ -235,7 +235,13 @@ class Trigger: # disabling gentoo postinstall since we reimplemented it functions.remove("ebuild_postremove") if self.package_action in ("remove",): - functions.append("openglsetup_xorg") + # look if this package is the last one + key = "%s/%s" % (self.pkgdata['category'], + self.pkgdata['name'],) + matches, rc = self.Entropy.clientDbconn.atomMatch(key, + multiMatch = True) + if len(matches) < 2: + functions.append("openglsetup_xorg") for x in self.pkgdata['removecontent']: if x.startswith("/boot"):