Inhibit dbgsym package creation in non-debug mode.
authorCarl Hetherington <cth@carlh.net>
Wed, 16 Feb 2022 18:42:31 +0000 (19:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 19 Feb 2022 23:58:15 +0000 (00:58 +0100)
cscript

diff --git a/cscript b/cscript
index 163a7fe6feb33216af3e0401ccade785b3f2fb2b..f213b53c78d2cb2a177587c3b8a2d3fc3e02b79b 100644 (file)
--- a/cscript
+++ b/cscript
@@ -620,8 +620,8 @@ def package_debian(target, cpu, version, options):
 
     target.set('CDIST_CONFIGURE', '"' + configure_options(target, options) + '"')
     target.set('CDIST_PACKAGE', f'dcpomatic{suffix}')
-    if target.debug:
-        target.set('CDIST_DEBUG_PACKAGE_FLAG', f'--dbg-package=dcpomatic{suffix}-dbg')
+    if not target.debug:
+        target.set('CDIST_DEBUG_PACKAGE_FLAG', '--no-ddebs')
 
     target.command('dpkg-buildpackage -uc -us')