From: Carl Hetherington Date: Wed, 26 May 2021 10:56:54 +0000 (+0200) Subject: Tidy can_build_disk checks to be more robust. X-Git-Tag: v2.15.152~4 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=0ede9dccbebd6a95b18cb747d73c1dcefd859373 Tidy can_build_disk checks to be more robust. --- diff --git a/cscript b/cscript index 965d42180..deddcb51a 100644 --- a/cscript +++ b/cscript @@ -208,15 +208,15 @@ def can_build_disk(target): if target.platform == 'osx': return True if target.platform == 'linux': - if target.distro == 'ubuntu' and target.version in ['18.04', '20.04', '20.10', '21.04']: + if target.distro == 'ubuntu' and target.version != '16.04': return True - if target.distro == 'debian' and target.version == '10': + if target.distro == 'debian' and target.version != '9': return True if target.detail == 'appimage': return True if target.distro == 'fedora' and int(target.version) >= 31: return True - if target.distro == 'centos' and target.version == '8': + if target.distro == 'centos' and target.version != '7': return True if target.distro == 'mageia': return True