Files
contrib/hardware/printer-and-scanner/Brother-DCP135c-cupswrapper/comar/package.py
T
2026-06-27 23:27:13 +03:00

13 lines
465 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
if not os.path.exists("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1"):
os.system("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1 -i")
def preRemove():
if os.path.exists("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1"):
os.system("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1 -e")