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>
Thu, 17 Feb 2022 08:59:36 +0000 (09:59 +0100)
cscript

diff --git a/cscript b/cscript
index e230cb1cf2d88f9a2eafa0128e3f4ff6a55e3c4f..a4dcdd0f0858f1ca8c3e0e9fa7cefc05e73a81d8 100644 (file)
--- a/cscript
+++ b/cscript
@@ -618,8 +618,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')