Mark full debian package as replacing the CLI one (#2179).
authorCarl Hetherington <cth@carlh.net>
Sun, 13 Feb 2022 19:15:58 +0000 (20:15 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 13 Feb 2022 21:02:34 +0000 (22:02 +0100)
cscript

diff --git a/cscript b/cscript
index ec52abdd7f13b2990079bebfaf70d3cdb5f51f8a..21eca89108f3b1e3641aea8634b2858f9760c5cc 100644 (file)
--- a/cscript
+++ b/cscript
@@ -280,6 +280,8 @@ def make_control(debian_version, bits, filename, debug, gui):
     print('', file=f)
     suffix = '' if gui else '-cli'
     print(f'Package: dcpomatic{suffix}', file=f)
+    if gui:
+        print('Replaces: dcpomatic-cli', file=f)
     if bits == 32:
         print('Architecture: i386', file=f)
     else: