works for qt5-base

This commit is contained in:
Ertuğrul Erata
2015-07-05 13:08:35 +03:00
parent 8c5873bb15
commit 1a71026d39
26 changed files with 1288 additions and 13 deletions
@@ -0,0 +1,19 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import shutil
ownerships = {
"/run/avahi-daemon" : "avahi:avahi",
}
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
for directory,owners in ownerships.items():
if os.path.exists(directory):
os.system("/bin/chown %s %s" % (owners, directory))
if os.path.exists("/etc/localtime"):
if not os.path.isdir("/etc/avahi/etc"):
os.makedirs("/etc/avahi/etc")
shutil.copy("/etc/localtime", "/etc/avahi/etc/localtime")