package-emul32.py 652 B

12345678910111213141516171819
  1. #!/usr/bin/python
  2. import os
  3. libdir = "/usr/lib32/fglrx"
  4. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  5. os.system("/usr/sbin/alternatives \
  6. --install /usr/lib32/libGL.so.1.2.0 libGL-32bit %(libdir)s/libGL.so.1.2.0 50 \
  7. --slave /usr/lib32/xorg/modules/volatile xorg-modules-volatile-32bit %(libdir)s/modules"
  8. % {"libdir": libdir})
  9. def preRemove():
  10. # FIXME This is not needed when upgrading package; but pisi does not
  11. # provide a way to learn operation type.
  12. #os.system("/usr/sbin/alternatives --remove libGL-32bit %s/libGL.so.1.2" % libdir)
  13. pass