package.py 317 B

12345678910
  1. import os
  2. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  3. stale_files = ["/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2-device.fdi",
  4. "/etc/udev/rules.d/60-libgphoto2.rules"]
  5. for f in stale_files:
  6. if os.path.exists(f):
  7. os.unlink(f)