summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-31 21:14:14 +0000
committerCarl Hetherington <cth@carlh.net>2021-12-31 21:14:14 +0000
commit0116cdff1571dc1b0be0eee195e5db64547c0ea7 (patch)
treebbc1f8b6c6f4d2d1e90db23655b427efb2166b78 /wscript
parent19a516670ab4d7f042e50dec28be7a5332791fdc (diff)
Don't try to call setcap on a non-existant disk writer binary.
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index af6d66b50..ce24e8666 100644
--- a/wscript
+++ b/wscript
@@ -676,7 +676,8 @@ def create_version_cc(version, cxx_flags):
def post(ctx):
if ctx.cmd == 'install' and ctx.env.TARGET_LINUX:
ctx.exec_command('/sbin/ldconfig')
- ctx.exec_command('setcap "cap_dac_override+ep cap_sys_admin+ep" %s/bin/dcpomatic2_disk_writer' % ctx.options.prefix)
+ if ctx.env.ENABLE_DISK:
+ ctx.exec_command('setcap "cap_dac_override+ep cap_sys_admin+ep" %s/bin/dcpomatic2_disk_writer' % ctx.options.prefix)
def pot(bld):
bld.recurse('src')