fix setperms deb-cli-only
authorcah <cah@ableton.com>
Sat, 11 Sep 2021 10:37:20 +0000 (12:37 +0200)
committercah <cah@ableton.com>
Sat, 11 Sep 2021 10:37:20 +0000 (12:37 +0200)
cscript

diff --git a/cscript b/cscript
index 4fe70512037f4d40e6fea8ee1cc0b351ff2a6f6d..d713c383848ef6a335adef90354aeb989805d0ad 100644 (file)
--- a/cscript
+++ b/cscript
@@ -613,7 +613,7 @@ def package_windows(target):
 
 def package_debian(target, cpu, version, options):
     make_control(target.version, target.bits, 'debian/control', target.debug, options['gui'])
-    if target.version != '9' and target.version != '16.04':
+    if target.version != '9' and target.version != '16.04' and options['gui']:
         with open('debian/postinst', 'w') as f:
             print('#!/bin/sh', file=f)
             # Get the required capability to write to disks