package.py 846 B

1234567891011121314151617181920
  1. #!/usr/bin/python
  2. import os
  3. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  4. os.system("/usr/bin/install-catalog --add /etc/sgml/openjade.cat \
  5. /usr/share/sgml/openjade/catalog")
  6. os.system("/usr/bin/install-catalog --add /etc/sgml/openjade.cat \
  7. /usr/share/sgml/openjade/dsssl/catalog")
  8. os.system("/usr/bin/install-catalog --add /etc/sgml/sgml-docbook.cat \
  9. /etc/sgml/openjade.cat")
  10. def preRemove():
  11. os.system("/usr/bin/install-catalog --remove /etc/sgml/openjade.cat \
  12. /usr/share/sgml/openjade/catalog")
  13. os.system("/usr/bin/install-catalog --remove /etc/sgml/openjade.cat \
  14. /usr/share/sgml/openjade/dsssl/catalog")
  15. os.system("/usr/bin/install-catalog --remove /etc/sgml/sgml-docbook.cat \
  16. /etc/sgml/openjade.cat")