entropy.client.interfaces.trigger: revert to xorg-x11 opengl profile only when really needed

This commit is contained in:
Fabio Erculiani
2009-05-25 20:24:17 +02:00
parent 75b91ea50f
commit b655ecc085
@@ -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"):