package.py 368 B

12345678910111213141516
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. import glob
  5. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  6. os.system("/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins")
  7. def preRemove():
  8. for cache in glob.glob("/usr/lib/vlc/plugins/plugins-*-*.dat"):
  9. try:
  10. os.unlink(cache)
  11. except OSError:
  12. pass