summaryrefslogtreecommitdiff
path: root/meson_post_install.py
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-01-16 14:22:57 +0000
committerRay Strode <halfline@gmail.com>2019-02-22 19:30:05 +0000
commit880976395dc45ef59e06b227cbba70d9861f2e71 (patch)
tree9b4d13bae364a93922b47fc256a0db732fb549c0 /meson_post_install.py
parent657c681a3e4b14a91b4b0851bfa69513b5eb68f3 (diff)
build: Ensure state directories are installed with correct permissions
See the previous commit. Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'meson_post_install.py')
-rw-r--r--meson_post_install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meson_post_install.py b/meson_post_install.py
index ba95055..5cc2dc4 100644
--- a/meson_post_install.py
+++ b/meson_post_install.py
@@ -9,10 +9,10 @@ localstatedir = os.path.normpath(destdir + os.sep + sys.argv[1])
# FIXME: meson will not track the creation of these directories
# https://github.com/mesonbuild/meson/blob/master/mesonbuild/scripts/uninstall.py#L39
dst_dirs = [
- os.path.join(localstatedir, 'lib', 'AccountsService', 'icons'),
- os.path.join(localstatedir, 'lib', 'AccountsService', 'users'),
+ (os.path.join(localstatedir, 'lib', 'AccountsService', 'icons'), 0o775),
+ (os.path.join(localstatedir, 'lib', 'AccountsService', 'users'), 0o700),
]
-for dst_dir in dst_dirs:
+for (dst_dir, dst_dir_mode) in dst_dirs:
if not os.path.exists(dst_dir):
- os.makedirs(dst_dir)
+ os.makedirs(dst_dir, mode=dst_dir_mode)