diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-31 21:14:14 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-31 21:14:14 +0000 |
| commit | 0116cdff1571dc1b0be0eee195e5db64547c0ea7 (patch) | |
| tree | bbc1f8b6c6f4d2d1e90db23655b427efb2166b78 /wscript | |
| parent | 19a516670ab4d7f042e50dec28be7a5332791fdc (diff) | |
Don't try to call setcap on a non-existant disk writer binary.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |
