Files
main/hardware/misc/libgphoto2/comar/package.py
T
2015-08-02 22:36:35 +03:00

10 lines
317 B
Python

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